org.jpos.iso.packager
Class PackagerWrapper
java.lang.Object
org.jpos.iso.packager.PackagerWrapper
- All Implemented Interfaces:
- Configurable, ReConfigurable, ISOPackager, LogSource
public abstract class PackagerWrapper
- extends java.lang.Object
- implements ISOPackager, LogSource, ReConfigurable
Wrapper on standard packager
- Version:
- $Revision: 2594 $ $Date: 2008-01-22 08:41:31 -0800 (Tue, 22 Jan 2008) $
- Author:
- bharavi gade
- See Also:
ISOPackager
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PackagerWrapper
public PackagerWrapper()
pack
public abstract byte[] pack(ISOComponent c)
throws ISOException
- Specified by:
pack in interface ISOPackager
- Parameters:
c - the Component to pack
- Returns:
- Message image
- Throws:
ISOException
unpack
public abstract int unpack(ISOComponent c,
byte[] b)
throws ISOException
- Specified by:
unpack in interface ISOPackager
- Parameters:
c - the Container of this messageb - ISO message image
- Returns:
- consumed bytes
- Throws:
ISOException
getFieldDescription
public java.lang.String getFieldDescription(ISOComponent m,
int fldNumber)
- Specified by:
getFieldDescription in interface ISOPackager
- Parameters:
m - the Container (i.e. an ISOMsg)fldNumber - the Field Number
- Returns:
- Field Description
setPackager
public void setPackager(ISOPackager packger)
getPackager
public ISOPackager getPackager()
setLogger
public void setLogger(Logger logger,
java.lang.String realm)
- Specified by:
setLogger in interface LogSource
getRealm
public java.lang.String getRealm()
- Specified by:
getRealm in interface LogSource
getLogger
public Logger getLogger()
- Specified by:
getLogger in interface LogSource
setConfiguration
public void setConfiguration(Configuration cfg)
throws ConfigurationException
- requires
inner-packager property
- Specified by:
setConfiguration in interface Configurable
- Parameters:
cfg - Configuration object
- Throws:
ConfigurationException