public enum UnixEntityType extends Enum<UnixEntityType>
UnixExternalFileAttributes.UnixExternalFileAttributes| Enum Constant and Description |
|---|
BLOCK_SPECIAL |
CHARACTER_SPECIAL |
DIRECTORY |
PIPE |
REGULAR_FILE |
SOCKET |
SYMBOLIC_LINK |
| Modifier and Type | Method and Description |
|---|---|
static UnixEntityType |
forCode(int code)
Get the Unix entity type corresponding to the code.
|
byte |
getCode()
Get the code for this entity type.
|
String |
toString() |
static UnixEntityType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnixEntityType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnixEntityType REGULAR_FILE
public static final UnixEntityType DIRECTORY
public static final UnixEntityType SYMBOLIC_LINK
public static final UnixEntityType BLOCK_SPECIAL
public static final UnixEntityType CHARACTER_SPECIAL
public static final UnixEntityType PIPE
public static final UnixEntityType SOCKET
public static UnixEntityType[] values()
for (UnixEntityType c : UnixEntityType.values()) System.out.println(c);
public static UnixEntityType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static UnixEntityType forCode(int code) throws IllegalArgumentException
The entity types are (codes in octal representation):
code - The code for the entity type.IllegalArgumentException - If the code is unknown.public byte getCode()
forCode(int)public String toString()
toString in class Enum<UnixEntityType>