|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.tools.tlv.common.TlvElement
public abstract class TlvElement
A TLV element is a "tag, length, value" data structure. First, an identifier is expected, followed by a length, followed by the data itself.
This abstract implementation does not imply anything about the encoding of the identifier, length or value field. This is deferred to a concrete implementation, e.g. a ASN.1 DER implementation.
The TLV element is parsed from an associated TlvInputStream.
| Method Summary | |
|---|---|
abstract TlvInputStream |
createTlvInputStream(byte[] pBytes,
int pOffset,
int pLength)
|
byte[] |
getContent()
The data part within the TLV element. |
abstract byte[] |
getEncoded()
The whole, encoded TLV element. |
int |
getIdentifier()
The identifier for this TLV element. |
int |
getLength()
The length of the TLV elements data |
TlvTemplate |
getTemplate()
A composite TlvElement contains other TlvElement
instances in form of a TlvTemplate. |
abstract boolean |
isComposite()
true if this element contains TLV data itself. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public abstract TlvInputStream createTlvInputStream(byte[] pBytes,
int pOffset,
int pLength)
public byte[] getContent()
public abstract byte[] getEncoded()
public int getIdentifier()
An identifier may be made up of different components, see ASN.1.
public int getLength()
public TlvTemplate getTemplate()
throws TlvFormatException
TlvElement contains other TlvElement
instances in form of a TlvTemplate.
TlvTemplate if available.
TlvFormatExceptionpublic abstract boolean isComposite()
true if this element contains TLV data itself.
true if this element contains TLV data itself.public String toString()
toString in class Object
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||