org.at4j.zip.extattrs
Enum MsDosFileAttributes

java.lang.Object
  extended by java.lang.Enum<MsDosFileAttributes>
      extended by org.at4j.zip.extattrs.MsDosFileAttributes
All Implemented Interfaces:
Serializable, Comparable<MsDosFileAttributes>

public enum MsDosFileAttributes
extends Enum<MsDosFileAttributes>

This is an enumeration over the different MS DOS file attributes. It is used by the MsDosExternalFileAttributes.

Since:
1.0
Author:
Karl Gustafsson
See Also:
MsDosExternalFileAttributes

Enum Constant Summary
ARCHIVE
           
HIDDEN_FILE
           
READ_ONLY
           
SUB_DIRECTORY
           
SYSTEM_FILE
           
VOLUME_LABEL
           
 
Field Summary
static Set<MsDosFileAttributes> ALL
          This constant contains all MS DOS file attributes.
 
Method Summary
 int getEncodedValue()
          Get the bit flag value that is used to represent this attribute when encoded in a Zip entry.
 String toString()
           
static MsDosFileAttributes valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MsDosFileAttributes[] 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 MsDosFileAttributes READ_ONLY

HIDDEN_FILE

public static final MsDosFileAttributes HIDDEN_FILE

SYSTEM_FILE

public static final MsDosFileAttributes SYSTEM_FILE

VOLUME_LABEL

public static final MsDosFileAttributes VOLUME_LABEL

SUB_DIRECTORY

public static final MsDosFileAttributes SUB_DIRECTORY

ARCHIVE

public static final MsDosFileAttributes ARCHIVE
Field Detail

ALL

public static final Set<MsDosFileAttributes> ALL
This constant contains all MS DOS file attributes.

Method Detail

values

public static MsDosFileAttributes[] 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 (MsDosFileAttributes c : MsDosFileAttributes.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MsDosFileAttributes 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

getEncodedValue

public int getEncodedValue()
Get the bit flag value that is used to represent this attribute when encoded in a Zip entry.


toString

public String toString()
Overrides:
toString in class Enum<MsDosFileAttributes>