jPOS 1.6.7 API Documentation

org.jpos.iso.packager
Class Base1SubFieldPackager

java.lang.Object
  extended by org.jpos.iso.ISOBasePackager
      extended by org.jpos.iso.packager.Base1SubFieldPackager
All Implemented Interfaces:
ISOPackager, LogSource

public class Base1SubFieldPackager
extends ISOBasePackager

ISO 8583 v1987 BINARY Packager customized for VISA Base1 subfields

Version:
$Id: Base1SubFieldPackager.java 2854 2010-01-02 10:34:31Z apr $
Author:
Eoin Flood
See Also:
ISOPackager, ISOBasePackager, ISOComponent

Constructor Summary
Base1SubFieldPackager()
           
 
Method Summary
 byte[] pack(ISOComponent m)
          Pack the subfield into a byte array
 int unpack(ISOComponent m, byte[] b)
          Unpack a packed subfield into its corresponding ISOComponent
 
Methods inherited from class org.jpos.iso.ISOBasePackager
createISOMsg, getDescription, getFieldDescription, getFieldPackager, getHeaderLength, getLogger, getRealm, setFieldPackager, setFieldPackager, setHeaderLength, setLogger, unpack
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base1SubFieldPackager

public Base1SubFieldPackager()
Method Detail

unpack

public int unpack(ISOComponent m,
                  byte[] b)
           throws ISOException
Unpack a packed subfield into its corresponding ISOComponent

Specified by:
unpack in interface ISOPackager
Overrides:
unpack in class ISOBasePackager
Parameters:
m - the Container of this message
b - ISO message image
Returns:
consumed bytes
Throws:
ISOException - on error

pack

public byte[] pack(ISOComponent m)
            throws ISOException
Pack the subfield into a byte array

Specified by:
pack in interface ISOPackager
Overrides:
pack in class ISOBasePackager
Parameters:
m - the Component to pack
Returns:
Message image
Throws:
ISOException - on error

jPOS.org