Enum TLVStateEnum
- All Implemented Interfaces:
Serializable, Comparable<TLVStateEnum>
Stores the different states of a PDU parsing.
- Author:
- Apache Directory Project
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe ending stateEnd means that the Length is totally readPending means that the Type length is contained in more that one byteStart means that the decoding hasn't read the first byteThe decoding of a PDU is doneEnd means that the Type is totally readOverflow 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_INTEGERPending means that the Type Tag is contained in more that one byteStart means that the deconding hasn't read the first byteThe decoding of a TLV is doneEnd means that the Value is totally readPending means that the Type Value is contained in more that one byteStart means that the decoding hasn't read the first byte -
Method Summary
Modifier and TypeMethodDescriptionstatic TLVStateEnumReturns 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.
-
Enum Constant Details
-
TAG_STATE_START
Start means that the deconding hasn't read the first byte -
TAG_STATE_PENDING
Pending means that the Type Tag is contained in more that one byte -
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 -
LENGTH_STATE_START
Start means that the decoding hasn't read the first byte -
LENGTH_STATE_PENDING
Pending means that the Type length is contained in more that one byte -
LENGTH_STATE_END
End means that the Length is totally read -
VALUE_STATE_START
Start means that the decoding hasn't read the first byte -
VALUE_STATE_PENDING
Pending means that the Type Value is contained in more that one byte -
VALUE_STATE_END
End means that the Value is totally read -
TLV_STATE_DONE
The decoding of a TLV is done -
PDU_DECODED
The decoding of a PDU is done -
GRAMMAR_END
The ending state
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-