com.github.junrar.rarfile
Enum SubBlockHeaderType

java.lang.Object
  extended by java.lang.Enum<SubBlockHeaderType>
      extended by com.github.junrar.rarfile.SubBlockHeaderType
All Implemented Interfaces:
Serializable, Comparable<SubBlockHeaderType>

public enum SubBlockHeaderType
extends Enum<SubBlockHeaderType>


Enum Constant Summary
BEEA_HEAD
           
EA_HEAD
           
MAC_HEAD
           
NTACL_HEAD
           
STREAM_HEAD
           
UO_HEAD
           
 
Method Summary
 boolean equals(short subblocktype)
          Return true if the given value is equal to the enum's value
static SubBlockHeaderType findSubblockHeaderType(short subType)
          find the header type for the given short value
 short getSubblocktype()
           
static SubBlockHeaderType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SubBlockHeaderType[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.