Class TLVMsg
java.lang.Object
org.jpos.tlv.TLVMsg
- All Implemented Interfaces:
Loggeable
-
Constructor Details
-
TLVMsg
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:TLVList tl = ...; tl.append(tag, value);
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)TLVList tl = TLVListBuilder.createInstance().build(); // or just new TLVList(); tl.append(tag, value); TLVMsg tm = tl.find(tag);Constructs a TLV message from tag and value.- Parameters:
tag- idvalue- tag value- Throws:
IllegalArgumentException
-
TLVMsg
protected TLVMsg(int tag, byte[] value, int tagSize, int lengthSize) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
Method Details
-
getTag
- Returns:
- tag
-
getValue
- Returns:
- tag value
-
getTLV
- Returns:
- tag + length + value of the TLV Message
-
getL
Value up to 127 can be encoded in single byte and multiple bytes are required for length bigger than 127- Returns:
- encoded length
-
getStringValue
- Returns:
- value
-
toString
-
dump
-