com.github.junrar.rarfile
Enum SubBlockHeaderType
java.lang.Object
java.lang.Enum<SubBlockHeaderType>
com.github.junrar.rarfile.SubBlockHeaderType
- All Implemented Interfaces:
- Serializable, Comparable<SubBlockHeaderType>
public enum SubBlockHeaderType
- extends Enum<SubBlockHeaderType>
EA_HEAD
public static final SubBlockHeaderType EA_HEAD
UO_HEAD
public static final SubBlockHeaderType UO_HEAD
MAC_HEAD
public static final SubBlockHeaderType MAC_HEAD
BEEA_HEAD
public static final SubBlockHeaderType BEEA_HEAD
NTACL_HEAD
public static final SubBlockHeaderType NTACL_HEAD
STREAM_HEAD
public static final SubBlockHeaderType STREAM_HEAD
values
public static SubBlockHeaderType[] 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 (SubBlockHeaderType c : SubBlockHeaderType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SubBlockHeaderType 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
equals
public boolean equals(short subblocktype)
- Return true if the given value is equal to the enum's value
- Parameters:
subblocktype -
- Returns:
- true if the given value is equal to the enum's value
findSubblockHeaderType
public static SubBlockHeaderType findSubblockHeaderType(short subType)
- find the header type for the given short value
- Parameters:
SubType - the short value
- Returns:
- the correspo nding enum or null
getSubblocktype
public short getSubblocktype()
- Returns:
- the short representation of this enum
Copyright © 2012. All Rights Reserved.