com.github.junrar.rarfile
Enum UnrarHeadertype

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

public enum UnrarHeadertype
extends Enum<UnrarHeadertype>

DOCUMENT ME

Version:
$LastChangedRevision$
Author:
$LastChangedBy$

Enum Constant Summary
AvHeader
           
CommHeader
           
EndArcHeader
           
FileHeader
           
MainHeader
           
MarkHeader
           
NewSubHeader
           
ProtectHeader
           
SignHeader
           
SubHeader
           
 
Method Summary
 boolean equals(byte header)
          Return true if the given byte is equal to the enum's byte
static UnrarHeadertype findType(byte headerType)
          Returns the enum according to the given byte or null
 byte getHeaderByte()
          the header byte of this enum
static UnrarHeadertype valueOf(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.
 
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

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(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

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


Copyright © 2012. All Rights Reserved.