Package com.github.junrar.rarfile
Enum UnrarHeadertype
- java.lang.Object
-
- java.lang.Enum<UnrarHeadertype>
-
- com.github.junrar.rarfile.UnrarHeadertype
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<UnrarHeadertype>
public enum UnrarHeadertype extends java.lang.Enum<UnrarHeadertype>
DOCUMENT ME- Version:
- $LastChangedRevision$
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AvHeaderCommHeaderEndArcHeaderFileHeaderMainHeaderMarkHeaderNewSubHeaderProtectHeaderSignHeaderSubHeader
-
Field Summary
Fields Modifier and Type Field Description private byteheaderByte
-
Constructor Summary
Constructors Modifier Constructor Description privateUnrarHeadertype(byte headerByte)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(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 nullbytegetHeaderByte()the header byte of this enumstatic UnrarHeadertypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static UnrarHeadertype[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MainHeader
public static final UnrarHeadertype MainHeader
-
MarkHeader
public static final UnrarHeadertype MarkHeader
-
FileHeader
public static final UnrarHeadertype FileHeader
-
CommHeader
public static final UnrarHeadertype CommHeader
-
AvHeader
public static final UnrarHeadertype AvHeader
-
SubHeader
public static final UnrarHeadertype SubHeader
-
ProtectHeader
public static final UnrarHeadertype ProtectHeader
-
SignHeader
public static final UnrarHeadertype SignHeader
-
NewSubHeader
public static final UnrarHeadertype NewSubHeader
-
EndArcHeader
public static final UnrarHeadertype EndArcHeader
-
-
Method Detail
-
values
public static UnrarHeadertype[] 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 (UnrarHeadertype c : UnrarHeadertype.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UnrarHeadertype valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
findType
public static UnrarHeadertype findType(byte headerType)
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
-
-