|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TLVStateEnum>
org.apache.directory.api.asn1.ber.tlv.TLVStateEnum
public enum TLVStateEnum
Stores the different states of a PDU parsing.
| Enum Constant Summary | |
|---|---|
GRAMMAR_END
The ending state |
|
LENGTH_STATE_END
End means that the Length is totally read |
|
LENGTH_STATE_PENDING
Pending means that the Type length is contained in more that one byte |
|
LENGTH_STATE_START
Start means that the decoding hasn't read the first byte |
|
PDU_DECODED
The decoding of a PDU is done |
|
TAG_STATE_END
End means that the Type is totally read |
|
TAG_STATE_OVERFLOW
Overflow could have two meaning : either there are more than 5 bytes to encode the value (5 bytes = 5bits + 4*7 bits = 33 bits) or the value that is represented by those bytes is over MAX_INTEGER |
|
TAG_STATE_PENDING
Pending means that the Type Tag is contained in more that one byte |
|
TAG_STATE_START
Start means that the deconding hasn't read the first byte |
|
TLV_STATE_DONE
The decoding of a TLV is done |
|
VALUE_STATE_END
End means that the Value is totally read |
|
VALUE_STATE_PENDING
Pending means that the Type Value is contained in more that one byte |
|
VALUE_STATE_START
Start means that the decoding hasn't read the first byte |
|
| Method Summary | |
|---|---|
static TLVStateEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TLVStateEnum[] |
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 |
|---|
public static final TLVStateEnum TAG_STATE_START
public static final TLVStateEnum TAG_STATE_PENDING
public static final TLVStateEnum TAG_STATE_END
public static final TLVStateEnum TAG_STATE_OVERFLOW
public static final TLVStateEnum LENGTH_STATE_START
public static final TLVStateEnum LENGTH_STATE_PENDING
public static final TLVStateEnum LENGTH_STATE_END
public static final TLVStateEnum VALUE_STATE_START
public static final TLVStateEnum VALUE_STATE_PENDING
public static final TLVStateEnum VALUE_STATE_END
public static final TLVStateEnum TLV_STATE_DONE
public static final TLVStateEnum PDU_DECODED
public static final TLVStateEnum GRAMMAR_END
| Method Detail |
|---|
public static TLVStateEnum[] values()
for (TLVStateEnum c : TLVStateEnum.values()) System.out.println(c);
public static TLVStateEnum valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||