public class Tlv<I extends TlvInfo<?,V,?>,V>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.nio.ByteBuffer |
data |
I |
info |
protected int |
length |
protected V |
value |
| Constructor and Description |
|---|
Tlv(I info,
byte[] data) |
Tlv(I info,
java.nio.ByteBuffer data) |
Tlv(I info,
java.nio.ByteBuffer data,
V value) |
Tlv(I info,
V value) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
getData() |
byte[] |
getDataAsByteArray() |
int |
getLength() |
V |
getValue() |
protected final int length
protected final java.nio.ByteBuffer data
protected V value
public Tlv(I info, java.nio.ByteBuffer data)
public Tlv(I info, byte[] data)
public java.nio.ByteBuffer getData()
public byte[] getDataAsByteArray()
public int getLength()
public V getValue()