org.jpos.iso
Class ISOMsgFieldPackager
java.lang.Object
org.jpos.iso.ISOFieldPackager
org.jpos.iso.ISOMsgFieldPackager
- Direct Known Subclasses:
- ISOMsgFieldValidatingPackager
public class ISOMsgFieldPackager
- extends ISOFieldPackager
ISOMsgFieldPackager is a packager able to pack compound ISOMsgs
(one message inside another one, and so on...)
- Version:
- $Id$
- Author:
- apr@cs.com.uy
- See Also:
PostPackager
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
msgPackager
protected ISOPackager msgPackager
fieldPackager
protected ISOFieldPackager fieldPackager
ISOMsgFieldPackager
public ISOMsgFieldPackager(ISOFieldPackager fieldPackager,
ISOPackager msgPackager)
- Parameters:
fieldPackager - low level field packagermsgPackager - ISOMsgField default packager
pack
public byte[] pack(ISOComponent c)
throws ISOException
- Specified by:
pack in class ISOFieldPackager
- Parameters:
c - - a component
- Returns:
- packed component
- Throws:
ISOException
unpack
public int unpack(ISOComponent c,
byte[] b,
int offset)
throws ISOException
- Specified by:
unpack in class ISOFieldPackager
- Parameters:
c - - the Component to unpackb - - binary imageoffset - - starting offset within the binary image
- Returns:
- consumed bytes
- Throws:
ISOException
unpack
public void unpack(ISOComponent c,
InputStream in)
throws IOException,
ISOException
- Overrides:
unpack in class ISOFieldPackager
- Parameters:
c - - the Component to unpackin - - input stream
- Throws:
ISOException
IOException
createComponent
public ISOComponent createComponent(int fieldNumber)
- Overrides:
createComponent in class ISOFieldPackager
getMaxPackedLength
public int getMaxPackedLength()
- Specified by:
getMaxPackedLength in class ISOFieldPackager
getISOMsgPackager
public ISOPackager getISOMsgPackager()
getISOFieldPackager
public ISOFieldPackager getISOFieldPackager()
Copyright © 1998-2012 jPOS.org. All Rights Reserved.