Modifier | Constructor and Description |
---|---|
|
TLVMsg(int tag,
byte[] value)
Deprecated.
In most cases, a message is created to attach it to the list.
It can be done by:
If for some reason this is not possible then a message can be created:
The intention is to not promote the use of TLVMsg outside. Due to
the lack of compatibility of various TLV types at TLVList.append(TLVMsg) |
protected |
TLVMsg(int tag,
byte[] value,
int tagSize,
int lengthSize) |
Modifier and Type | Method and Description |
---|---|
void |
dump(java.io.PrintStream p,
java.lang.String indent) |
byte[] |
getL()
Value up to 127 can be encoded in single byte and multiple bytes are
required for length bigger than 127
|
java.lang.String |
getStringValue() |
int |
getTag() |
byte[] |
getTLV() |
byte[] |
getValue() |
java.lang.String |
toString() |
@Deprecated public TLVMsg(int tag, byte[] value) throws java.lang.IllegalArgumentException
TLVList tl = ...;
tl.append(tag, value);
If for some reason this is not possible then a message can be created:
TLVList tl = TLVListBuilder.createInstance().build(); // or just new TLVList();
tl.append(tag, value);
TLVMsg tm = tl.find(tag);
The intention is to not promote the use of TLVMsg outside. Due to
the lack of compatibility of various TLV types at TLVList.append(TLVMsg)tag
- idvalue
- tag valuejava.lang.IllegalArgumentException
protected TLVMsg(int tag, byte[] value, int tagSize, int lengthSize) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public int getTag()
public byte[] getValue()
public byte[] getTLV()
public byte[] getL()
public java.lang.String getStringValue()
public java.lang.String toString()
toString
in class java.lang.Object