Enum Class UnrarHeadertype
- All Implemented Interfaces:
Serializable, Comparable<UnrarHeadertype>, Constable
DOCUMENT ME
- Version:
- $LastChangedRevision$
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(byte header) Return true if the given byte is equal to the enum's bytestatic UnrarHeadertypefindType(byte headerType) Returns the enum according to the given byte or nullbytethe header byte of this enumstatic UnrarHeadertypeReturns the enum constant of this class with the specified name.static UnrarHeadertype[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MainHeader
-
MarkHeader
-
FileHeader
-
CommHeader
-
AvHeader
-
SubHeader
-
ProtectHeader
-
SignHeader
-
NewSubHeader
-
EndArcHeader
-
-
Field Details
-
headerByte
private final byte headerByte
-
-
Constructor Details
-
UnrarHeadertype
private UnrarHeadertype(byte headerByte)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
findType
Returns the enum according to the given byte or null- Parameters:
headerType- the headerbyte- Returns:
- the enum or null
-
equals
public boolean equals(byte header) Return true if the given byte is equal to the enum's byte- Parameters:
header- header- Returns:
- true if the given byte is equal to the enum's byte
-
getHeaderByte
public byte getHeaderByte()the header byte of this enum- Returns:
- the header byte of this enum
-