Package com.oss.util
Class BERTool.TLV
java.lang.Object
com.oss.util.BERTool.TLV
- Enclosing class:
- BERTool
Represents a BER encoding as a TAG, LENGTH, and VALUE triple.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
The number of octets occupied by the value or -1 when the value contains an indefinite BER encoding length.The BER tag.Value octets. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BERTool.TLV
readFrom
(ByteBuffer in) Creates an instance by reading it from a ByteBuffer.
-
Field Details
-
tag
The BER tag. -
length
public int lengthThe number of octets occupied by the value or -1 when the value contains an indefinite BER encoding length. -
value
Value octets.
-
-
Constructor Details
-
TLV
public TLV()
-
-
Method Details
-
readFrom
Creates an instance by reading it from a ByteBuffer.- Parameters:
in
- the byte buffer.- Returns:
- a new TLV instance.
- Throws:
BERTool.BERException
- when an error is detected in the BER encoding.
-