org.jpos.iso.packager
Class GenericSubFieldPackager
java.lang.Object
org.jpos.iso.ISOBasePackager
org.jpos.iso.packager.GenericPackager
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericSubFieldPackager
public GenericSubFieldPackager()
throws ISOException
- Throws:
ISOException
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 messageb - 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.