org.at4j.zip.extattrs
Enum NtfsFileAttributes

java.lang.Object
  extended by java.lang.Enum<NtfsFileAttributes>
      extended by 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

Enum Constant Summary
ARCHIVE
           
COMPRESSED
           
DEVICE
           
DIRECTORY
           
ENCRYPTED
           
HIDDEN
           
NORMAL
           
NOT_CONTENT_INDEXED
           
OFFLINE
           
READ_ONLY
           
REPARSE_POINT
           
SPARSE_FILE
           
SYSTEM
           
TEMPORARY
           
 
Field Summary
static Set<NtfsFileAttributes> ALL
          This constant contains all NTFS file attributes.
 
Method Summary
 int getCode()
          Get the unique code used to identify this attribute.
 String toString()
           
static NtfsFileAttributes valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NtfsFileAttributes[] 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

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
Field Detail

ALL

public static final Set<NtfsFileAttributes> ALL
This constant contains all NTFS file attributes.

Method Detail

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>