org.at4j.zip.extattrs
Enum MsDosFileAttributes
java.lang.Object
java.lang.Enum<MsDosFileAttributes>
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
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
ALL
public static final Set<MsDosFileAttributes> ALL
- This constant contains all MS DOS file attributes.
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>