|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<NtFileAttributes> org.entityfs.entityattrs.ntfs.NtFileAttributes
public enum NtFileAttributes
This is an enumeration over the different NT attributes that a file can have.
Enum Constant Summary | |
---|---|
ARCHIVE
The file or directory is an archive file. |
|
COMPRESSED
The file is compressed. |
|
DEVICE
Not used? |
|
DIRECTORY
The entity is a directory. |
|
ENCRYPTED
The file is encrypted. |
|
HIDDEN
The file or directory is hidden. |
|
NONINDEXED
Not used? |
|
NORMAL
The file does not have any other attributes. |
|
OFFLINE
The file data is not available immediately. |
|
READ_ONLY
The file or directory is read only. |
|
REPARSE_POINT
The entity has an associated reparse point. |
|
SPARSE
The file is a sparse file. |
|
SYSTEM
The file or directory is part of the operating system. |
|
TEMPORARY
The file is used for temporary storage. |
|
VOLUME
Not used? |
Method Summary | |
---|---|
static Set<NtFileAttributes> |
get(int code)
Get the set of NT file attributes that correspond to the flag code. |
static int |
getCode(Set<NtFileAttributes> s)
Get the integer code for the set of attributes. |
int |
getIntValue()
Get the integer flag value for the attribute. |
String |
getReadable()
Get a readable tag for the attribute. |
String |
toString()
|
static NtFileAttributes |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static NtFileAttributes[] |
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 NtFileAttributes READ_ONLY
public static final NtFileAttributes HIDDEN
public static final NtFileAttributes SYSTEM
public static final NtFileAttributes VOLUME
public static final NtFileAttributes DIRECTORY
public static final NtFileAttributes ARCHIVE
public static final NtFileAttributes DEVICE
public static final NtFileAttributes NORMAL
public static final NtFileAttributes TEMPORARY
public static final NtFileAttributes SPARSE
public static final NtFileAttributes REPARSE_POINT
public static final NtFileAttributes COMPRESSED
public static final NtFileAttributes OFFLINE
public static final NtFileAttributes NONINDEXED
public static final NtFileAttributes ENCRYPTED
Method Detail |
---|
public static NtFileAttributes[] values()
for (NtFileAttributes c : NtFileAttributes.values()) System.out.println(c);
public static NtFileAttributes 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 int getIntValue()
public String getReadable()
toString
methods and suchlike.
public String toString()
toString
in class Enum<NtFileAttributes>
public static Set<NtFileAttributes> get(int code) throws IllegalArgumentException
getIntValue()
.
code
- The code.
IllegalArgumentException
- If code
< 0 or code
>=
32768getIntValue()
,
getCode(Set)
public static int getCode(Set<NtFileAttributes> s)
getIntValue()
method.
s
- The set of attributes.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |