public enum FileAttribute extends java.lang.Enum<FileAttribute>
Enum Constant and Description |
---|
Directory
Folder type
|
Executable
File/Folder can be executed
|
File
File type
|
Hidden
File/Folder is hidden
|
Readable
File/Folder can be read
|
Writeable
File/Folder can be written to
|
Modifier and Type | Method and Description |
---|---|
int |
getAttribute() |
static FileAttribute |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileAttribute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileAttribute Readable
public static final FileAttribute Writeable
public static final FileAttribute Executable
public static final FileAttribute Hidden
public static final FileAttribute File
public static final FileAttribute Directory
public static FileAttribute[] values()
for (FileAttribute c : FileAttribute.values()) System.out.println(c);
public static FileAttribute 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 int getAttribute()