org.jpos.iso.packager
Class EuroSubFieldPackager

java.lang.Object
  extended by org.jpos.iso.ISOBasePackager
      extended by org.jpos.iso.packager.EuroSubFieldPackager
All Implemented Interfaces:
ISOPackager, LogSource
Direct Known Subclasses:
EuroPackager.Euro48Packager, MasterCardEBCDICSubFieldPackager

public class EuroSubFieldPackager
extends ISOBasePackager

EuroPay SubField packager

Version:
$Revision$ $Date$
Author:
Eoin Flood
See Also:
ISOPackager, ISOBasePackager, This packager is used by EuroPackager to package subfields such as field 48.

Field Summary
protected static Prefixer tagPrefixer
           
 
Fields inherited from class org.jpos.iso.ISOBasePackager
fld, headerLength, logger, realm
 
Constructor Summary
EuroSubFieldPackager()
           
 
Method Summary
protected  boolean emitBitMap()
          Always return false
 byte[] pack(ISOComponent c)
           
 int unpack(ISOComponent m, byte[] b)
           
 
Methods inherited from class org.jpos.iso.ISOBasePackager
createISOMsg, getBitMapfieldPackager, getDescription, getFieldDescription, getFieldPackager, getFirstField, getHeaderLength, getLogger, getMaxValidField, getRealm, setFieldPackager, setFieldPackager, setHeaderLength, setLogger, unpack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tagPrefixer

protected static Prefixer tagPrefixer
Constructor Detail

EuroSubFieldPackager

public EuroSubFieldPackager()
Method Detail

emitBitMap

protected boolean emitBitMap()
Always return false

Overrides:
emitBitMap in class ISOBasePackager
Returns:
true if BitMap have to be emited

pack

public byte[] pack(ISOComponent c)
            throws ISOException
Specified by:
pack in interface ISOPackager
Overrides:
pack in class ISOBasePackager
Parameters:
c - the Component to pack
Returns:
Message image
Throws:
ISOException - on error

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


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