jPOS 1.6.7 API Documentation

org.jpos.iso.packager
Class DummyPackager

java.lang.Object
  extended by org.jpos.util.Log
      extended by org.jpos.iso.packager.DummyPackager
All Implemented Interfaces:
ISOPackager, LogSource

public class DummyPackager
extends Log
implements ISOPackager


Field Summary
 
Fields inherited from class org.jpos.util.Log
DEBUG, ERROR, FATAL, INFO, TRACE, WARN
 
Constructor Summary
DummyPackager()
           
 
Method Summary
 ISOMsg createISOMsg()
           
 java.lang.String getDescription()
           
 java.lang.String getFieldDescription(ISOComponent m, int fldNumber)
           
 byte[] pack(ISOComponent m)
           
 int unpack(ISOComponent m, byte[] b)
           
 void unpack(ISOComponent m, java.io.InputStream in)
           
 
Methods inherited from class org.jpos.util.Log
createDebug, createDebug, createError, createError, createFatal, createFatal, createInfo, createInfo, createLogEvent, createLogEvent, createTrace, createTrace, createWarn, createWarn, debug, debug, error, error, fatal, fatal, getLog, getLogger, getRealm, info, info, setLogger, setLogger, setRealm, trace, trace, warn, warn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jpos.util.LogSource
getLogger, getRealm, setLogger
 

Constructor Detail

DummyPackager

public DummyPackager()
Method Detail

pack

public byte[] pack(ISOComponent m)
            throws ISOException
Specified by:
pack in interface ISOPackager
Parameters:
m - 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
Parameters:
m - the Container of this message
b - ISO message image
Returns:
consumed bytes
Throws:
ISOException - on error

unpack

public void unpack(ISOComponent m,
                   java.io.InputStream in)
            throws ISOException
Specified by:
unpack in interface ISOPackager
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

createISOMsg

public ISOMsg createISOMsg()
Specified by:
createISOMsg in interface ISOPackager
Returns:
an ISOMsg

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ISOPackager
Returns:
Packager's Description

jPOS.org