public class Tlv
extends java.lang.Object
| Constructor and Description |
|---|
Tlv(byte[] bytes,
int dataOffset)
Creates instance of
Tlv |
Tlv(int tag,
byte[] value)
Creates instance of
Tlv |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
int |
getLength() |
int |
getOffset() |
int |
getTag() |
byte[] |
getValue() |
public Tlv(byte[] bytes,
int dataOffset)
Tlvbytes - raw bytes that needs to be converted into TlvdataOffset - offset within data byte arraypublic Tlv(int tag,
byte[] value)
Tlvtag - the tag of structurevalue - the value of structurepublic int getTag()
public byte[] getValue()
public int getLength()
public int getOffset()
public byte[] getBytes()