org.jpos.iso.packager
Class GenericSubFieldPackager

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

public class GenericSubFieldPackager
extends GenericPackager

GenericSubFieldPackager Used to pack composite SubFields from the GenericPackager

Author:
Eoin Flood
See Also:
This class is basically the same as Base1SubFieldPackager except that it extends GenericPackager which means that parameters such as emitBitmap, maxvalidField and bitmapField can be specified in the GenericPackager xml config file.

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jpos.iso.packager.GenericPackager
GenericPackager.GenericContentHandler, GenericPackager.GenericEntityResolver
 
Field Summary
 
Fields inherited from class org.jpos.iso.ISOBasePackager
fld, headerLength, logger, realm
 
Constructor Summary
GenericSubFieldPackager()
           
 
Method Summary
 byte[] pack(ISOComponent m)
          Pack the subfield into a byte array
 int unpack(ISOComponent m, byte[] b)
           
 
Methods inherited from class org.jpos.iso.packager.GenericPackager
emitBitMap, getBitMapfieldPackager, getDescription, getFirstField, getMaxValidField, readFile, readFile, setConfiguration, setLogger
 
Methods inherited from class org.jpos.iso.ISOBasePackager
createISOMsg, getFieldDescription, getFieldPackager, getHeaderLength, getLogger, getRealm, setFieldPackager, setFieldPackager, setHeaderLength, unpack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericSubFieldPackager

public GenericSubFieldPackager()
                        throws ISOException
Throws:
ISOException
Method Detail

unpack

public int unpack(ISOComponent m,
                  byte[] b)
           throws ISOException
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


Copyright © 1998-2012 jPOS.org. All Rights Reserved.