|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.asn1.ber.BERDecoderState
public final class BERDecoderState
A type safe enumeration representing the state of a BERDecoder. This can take one of the following three values:
Field Summary | |
---|---|
static BERDecoderState |
LENGTH
enum for the LENGTH state |
static int |
LENGTH_VAL
value for the LENGTH state |
private java.lang.String |
name
the name of this enumeration element |
static BERDecoderState |
TAG
enum for the TAG state |
static int |
TAG_VAL
value for the TAG state |
private int |
value
the value of this enumeration element |
static BERDecoderState |
VALUE
enum for the VALUE state |
static int |
VALUE_VAL
value for the VALUE state |
Constructor Summary | |
---|---|
private |
BERDecoderState(java.lang.String name,
int value)
Private constructor so no other instances can be created other than the public static constants in this class. |
Method Summary | |
---|---|
java.lang.String |
getName()
Get's the name of this enumeration element. |
BERDecoderState |
getNext(boolean isPrimitive)
Gets the next state after this BERDecoderState based on the nature of the present TLV being processed. |
static BERDecoderState |
getStartState()
Gets the start state. |
static BERDecoderState |
getState(int value)
Gets the state of the decoder using a state value. |
static BERDecoderState |
getState(java.lang.String stateName)
Gets the enum type for the state regardless of case. |
int |
getValue()
Get's the value of this enumeration element. |
boolean |
isEndState(boolean isPrimitive)
Determines if this present state is the processing end state for a TLV based on the nature of the current TLV tuple as either a primitive TLV or a constructed one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TAG_VAL
public static final int LENGTH_VAL
public static final int VALUE_VAL
public static final BERDecoderState TAG
public static final BERDecoderState LENGTH
public static final BERDecoderState VALUE
private final java.lang.String name
private final int value
Constructor Detail |
---|
private BERDecoderState(java.lang.String name, int value)
name
- a string name for the enumeration value.value
- the integer value of the enumeration.Method Detail |
---|
public final java.lang.String getName()
public final int getValue()
public final BERDecoderState getNext(boolean isPrimitive)
isPrimitive
- true if the current TLV is primitive, false if it is
constructed
public final boolean isEndState(boolean isPrimitive)
isPrimitive
- true if the current TLV is primitive, false if it is
constructed
public static final BERDecoderState getStartState()
public static final BERDecoderState getState(java.lang.String stateName)
stateName
- the name of the state
public static final BERDecoderState getState(int value)
value
- the value of the state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |