public enum TLVStateEnum extends Enum<TLVStateEnum>
Enum Constant and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- if the argument is nullCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.