public static enum FileMode.Type extends java.lang.Enum<FileMode.Type>
Enum Constant and Description |
---|
BLOCK_SPECIAL
block special
|
CHAR_SPECIAL
character special
|
DIRECTORY
directory
|
FIFO_SPECIAL
FIFO special
|
REGULAR
regular
|
SOCKET_SPECIAL
socket special
|
SYMKLINK
symbolic link
|
UNKNOWN
unknown
|
Modifier and Type | Method and Description |
---|---|
static FileMode.Type |
fromMask(int mask) |
int |
toMask() |
static FileMode.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileMode.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileMode.Type BLOCK_SPECIAL
public static final FileMode.Type CHAR_SPECIAL
public static final FileMode.Type FIFO_SPECIAL
public static final FileMode.Type SOCKET_SPECIAL
public static final FileMode.Type REGULAR
public static final FileMode.Type DIRECTORY
public static final FileMode.Type SYMKLINK
public static final FileMode.Type UNKNOWN
public static FileMode.Type[] values()
for (FileMode.Type c : FileMode.Type.values()) System.out.println(c);
public static FileMode.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static FileMode.Type fromMask(int mask)
public int toMask()