Encapsulation of Basic Encoding Rule: Type, Length, Value (BER-TLV) data structures.
This class implements a BER-TLV structure as per the X.690 standard.
Note that this structure is hierarchical - a BER-TLV object may encode a collection of other BER-TLV structures, or it may encode primitive data.
Additional information may be found at:
Thread safety:
Classes | |
enum | BER_ID_Class |
Representation of the ID class field within BER-TLV structures. More... | |
Public Member Functions | |
boolean | constructed () |
Query whether the stored value is constructed (opposite of primitive()) More... | |
long | constructedSize () |
Size in BER-TLV objects of the constructed data, if there is any. More... | |
boolean | definiteLength () |
Query whether the stored length for this structure is definite. More... | |
byte [] | get () |
Extract the data, in raw BER-TLV binary format. More... | |
BER_TLV [] | getConstructed () |
Copy the constructed data, if there is any. More... | |
byte [] | getPrimitive () |
Copy the primitive data, if there is any. More... | |
BER_ID_Class | idClass () |
Query the type ID class for this structure. More... | |
long | length () |
Query the length field for this structure. More... | |
boolean | primitive () |
Query whether the stored value is primitive (opposite of constructed()) More... | |
long | primitiveSize () |
Size in bytes of the primitive data, if there is any. More... | |
long | size () |
Query the overall size of this structure. More... | |
long | tag () |
Query the type ID tag for this structure. | |
boolean constructed | ( | ) |
Query whether the stored value is constructed (opposite of primitive())
long constructedSize | ( | ) |
Size in BER-TLV objects of the constructed data, if there is any.
boolean definiteLength | ( | ) |
Query whether the stored length for this structure is definite.
byte [] get | ( | ) |
Extract the data, in raw BER-TLV binary format.
BER_TLV [] getConstructed | ( | ) |
Copy the constructed data, if there is any.
byte [] getPrimitive | ( | ) |
Copy the primitive data, if there is any.
BER_ID_Class idClass | ( | ) |
Query the type ID class for this structure.
long length | ( | ) |
Query the length field for this structure.
boolean primitive | ( | ) |
Query whether the stored value is primitive (opposite of constructed())
long primitiveSize | ( | ) |
Size in bytes of the primitive data, if there is any.