org.jpos.iso
Class IF_TCHAR
java.lang.Object
org.jpos.iso.ISOFieldPackager
org.jpos.iso.IF_TBASE
org.jpos.iso.IF_TCHAR
public class IF_TCHAR
- extends IF_TBASE
ISOFieldPackager CHARACTERS (ASCII and BINARY)
deal fields terminated by special token
- Version:
- $Id: IF_TCHAR.java 2594 2008-01-22 16:41:31Z apr $
- Author:
- Zhiyu Tang
- See Also:
ISOComponent
|
Constructor Summary |
IF_TCHAR()
|
IF_TCHAR(int len,
java.lang.String description)
|
IF_TCHAR(int len,
java.lang.String description,
java.lang.String token)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IF_TCHAR
public IF_TCHAR()
IF_TCHAR
public IF_TCHAR(int len,
java.lang.String description)
- Parameters:
len - - field lendescription - symbolic descrption
IF_TCHAR
public IF_TCHAR(int len,
java.lang.String description,
java.lang.String token)
- Parameters:
len - - field lendescription - symbolic descrptiontoken - token descrption
pack
public byte[] pack(ISOComponent c)
throws ISOException
- Specified by:
pack in class ISOFieldPackager
- Parameters:
c - - a component
- Returns:
- packed component
- Throws:
ISOException
unpack
public int unpack(ISOComponent c,
byte[] b,
int offset)
throws ISOException
- Specified by:
unpack in class ISOFieldPackager
- Parameters:
c - - the Component to unpackb - - binary imageoffset - - starting offset within the binary image
- Returns:
- consumed bytes
- Throws:
ISOException
getMaxPackedLength
public int getMaxPackedLength()
- Specified by:
getMaxPackedLength in class ISOFieldPackager