org.at4j.zip.extattrs
Enum NtfsFileAttributes
java.lang.Object
java.lang.Enum<NtfsFileAttributes>
org.at4j.zip.extattrs.NtfsFileAttributes
- All Implemented Interfaces:
- Serializable, Comparable<NtfsFileAttributes>
public enum NtfsFileAttributes
- extends Enum<NtfsFileAttributes>
This is an enumeration over the different NTFS file attributes. It is used by
NtfsExternalFileAttributes
.
- Since:
- 1.0
- Author:
- Karl Gustafsson
- See Also:
NtfsExternalFileAttributes
READ_ONLY
public static final NtfsFileAttributes READ_ONLY
HIDDEN
public static final NtfsFileAttributes HIDDEN
SYSTEM
public static final NtfsFileAttributes SYSTEM
DIRECTORY
public static final NtfsFileAttributes DIRECTORY
ARCHIVE
public static final NtfsFileAttributes ARCHIVE
DEVICE
public static final NtfsFileAttributes DEVICE
NORMAL
public static final NtfsFileAttributes NORMAL
TEMPORARY
public static final NtfsFileAttributes TEMPORARY
SPARSE_FILE
public static final NtfsFileAttributes SPARSE_FILE
REPARSE_POINT
public static final NtfsFileAttributes REPARSE_POINT
COMPRESSED
public static final NtfsFileAttributes COMPRESSED
OFFLINE
public static final NtfsFileAttributes OFFLINE
NOT_CONTENT_INDEXED
public static final NtfsFileAttributes NOT_CONTENT_INDEXED
ENCRYPTED
public static final NtfsFileAttributes ENCRYPTED
ALL
public static final Set<NtfsFileAttributes> ALL
- This constant contains all NTFS file attributes.
values
public static NtfsFileAttributes[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (NtfsFileAttributes c : NtfsFileAttributes.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static NtfsFileAttributes valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getCode
public int getCode()
- Get the unique code used to identify this attribute.
- Returns:
- The unique code used to identify this attribute.
toString
public String toString()
- Overrides:
toString
in class Enum<NtfsFileAttributes>