|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<UnixEntityType> org.at4j.zip.extattrs.UnixEntityType
public enum UnixEntityType
An enumeration over the different Unix entity types that may occur in a Zip
file. This is used by the UnixExternalFileAttributes
.
UnixExternalFileAttributes
Enum Constant Summary | |
---|---|
BLOCK_SPECIAL
|
|
CHARACTER_SPECIAL
|
|
DIRECTORY
|
|
PIPE
|
|
REGULAR_FILE
|
|
SOCKET
|
|
SYMBOLIC_LINK
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
NullPointerException
- 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>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |