jPOS 1.6.1 API Documentation

org.jpos.iso.packager
Class PackagerWrapper

java.lang.Object
  extended by 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

Constructor Summary
PackagerWrapper()
           
 
Method Summary
 java.lang.String getFieldDescription(ISOComponent m, int fldNumber)
           
 Logger getLogger()
           
 ISOPackager getPackager()
           
 java.lang.String getRealm()
           
abstract  byte[] pack(ISOComponent c)
           
 void setConfiguration(Configuration cfg)
          requires inner-packager property
 void setLogger(Logger logger, java.lang.String realm)
           
 void setPackager(ISOPackager packger)
           
abstract  int unpack(ISOComponent c, byte[] b)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jpos.iso.ISOPackager
createISOMsg, unpack
 

Constructor Detail

PackagerWrapper

public PackagerWrapper()
Method Detail

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 message
b - 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

jPOS.org