org.jpos.tlv
Class TLVMsg
java.lang.Object
org.jpos.tlv.TLVMsg
public class TLVMsg
- extends Object
- Author:
- bharavi
|
Field Summary |
protected byte[] |
value
|
|
Constructor Summary |
TLVMsg()
empty constructor |
TLVMsg(int tag,
byte[] value)
constructs a TLV Message from tag and value |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
protected byte[] value
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 String getStringValue()
Copyright © 1998-2012 jPOS.org. All Rights Reserved.