org.jpos.tlv
Class TLVMsg
java.lang.Object
org.jpos.tlv.TLVMsg
public class TLVMsg
- extends java.lang.Object
- Author:
- bharavi
|
Constructor Summary |
TLVMsg()
empty constructor |
TLVMsg(int tag,
byte[] value)
constructs a TLV Message from tag and value |
|
Method Summary |
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()
|
void |
setTag(int tag)
|
void |
setValue(byte[] newValue)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TLVMsg
public TLVMsg()
- empty constructor
TLVMsg
public TLVMsg(int tag,
byte[] value)
- constructs a TLV Message from tag and value
- Parameters:
tag - value -
getTag
public int getTag()
getValue
public byte[] getValue()
setTag
public void setTag(int tag)
- Parameters:
tag - of TLV Message
setValue
public void setValue(byte[] newValue)
- Parameters:
value - of TLV Message
getTLV
public byte[] getTLV()
getL
public byte[] 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
public java.lang.String getStringValue()