public static enum DirEntry.Type extends Enum<DirEntry.Type>
Enum Constant and Description |
---|
DIR
entry reperesents a directory
|
DIRLINK
entry reperesents a symlink to a directory
|
FILE
entry reperesents a regular file
|
FILELINK
entry reperesents a symlink to a regular file
|
INVALID
entry represents a symlink, which points to an entity, which can not
be stated
|
LINKLINK
entry is a symlink, which points to another symlink
|
OTHER
entry represents neither regular file nor a directory nor a symlink
|
OTHERLINK
entry represents a symlink to an entry, which is neither regular
file nor a directory
|
UNKNOWN
the type of the entry could not be determined because entry
attributes could not be obtained
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static DirEntry.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DirEntry.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DirEntry.Type FILE
public static final DirEntry.Type FILELINK
public static final DirEntry.Type DIR
public static final DirEntry.Type DIRLINK
public static final DirEntry.Type OTHER
public static final DirEntry.Type OTHERLINK
public static final DirEntry.Type LINKLINK
public static final DirEntry.Type INVALID
public static final DirEntry.Type UNKNOWN
public static DirEntry.Type[] values()
for (DirEntry.Type c : DirEntry.Type.values()) System.out.println(c);
public static DirEntry.Type 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 String toString()
toString
in class Enum<DirEntry.Type>
Created by Jens Elkner