jPOS 1.6.7 API Documentation

org.jpos.tlv
Class TLVList

java.lang.Object
  extended by org.jpos.tlv.TLVList
All Implemented Interfaces:
java.io.Serializable

public class TLVList
extends java.lang.Object
implements java.io.Serializable

Author:
bharavi
See Also:
Serialized Form

Constructor Summary
TLVList()
          empty constructor
 
Method Summary
 void append(int tag, byte[] value)
          Append TLVMsg to the TLVList
 void append(int tag, java.lang.String value)
          Append TLVMsg to the TLVList
 void append(TLVMsg tlvToAppend)
          Append TLVMsg to the TLVList
 void deleteByIndex(int index)
           
 void deleteByTag(int tag)
           
 java.util.Enumeration elements()
          return an enumeration of the Vector of tags.
 TLVMsg find(int tag)
           
 int findIndex(int tag)
           
 TLVMsg findNextTLV()
           
 java.lang.String getString(int tag)
           
 byte[] getValue(int tag)
           
 boolean hasTag(int tag)
           
 TLVMsg index(int index)
           
 byte[] pack()
          pack the TLV message (BER-TLV Encoding)
 void unpack(byte[] buf)
          unpack a message
 void unpack(byte[] buf, int offset)
          unpack a message with a starting offset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TLVList

public TLVList()
empty constructor

Method Detail

unpack

public void unpack(byte[] buf)
            throws ISOException
unpack a message

Parameters:
buf - - raw message
Throws:
ISOException

elements

public java.util.Enumeration elements()
return an enumeration of the Vector of tags.


unpack

public void unpack(byte[] buf,
                   int offset)
            throws ISOException
unpack a message with a starting offset

Parameters:
buf - - raw message
Throws:
ISOException

append

public void append(TLVMsg tlvToAppend)
Append TLVMsg to the TLVList

Parameters:
TLVMsg -

append

public void append(int tag,
                   byte[] value)
Append TLVMsg to the TLVList

Parameters:
TAG -
value -

append

public void append(int tag,
                   java.lang.String value)
Append TLVMsg to the TLVList

Parameters:
TAG -
value - in hexadecimal character representation

deleteByIndex

public void deleteByIndex(int index)

deleteByTag

public void deleteByTag(int tag)

find

public TLVMsg find(int tag)

findIndex

public int findIndex(int tag)

findNextTLV

public TLVMsg findNextTLV()

index

public TLVMsg index(int index)

pack

public byte[] pack()
pack the TLV message (BER-TLV Encoding)

Returns:
the packed message

getString

public java.lang.String getString(int tag)

getValue

public byte[] getValue(int tag)

hasTag

public boolean hasTag(int tag)

jPOS.org