org.jpos.iso.packager
Class DummyPackager
java.lang.Object
org.jpos.util.Log
org.jpos.iso.packager.DummyPackager
- All Implemented Interfaces:
- ISOPackager, LogSource
public class DummyPackager
- extends Log
- implements ISOPackager
| 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 |
DummyPackager
public DummyPackager()
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 messageb - 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