org.jpos.iso
Class IF_UNUSED
java.lang.Object
org.jpos.iso.ISOFieldPackager
org.jpos.iso.IF_UNUSED
public class IF_UNUSED
- extends ISOFieldPackager
IF_UNUSED acts as a filler for unused elements of a message packager.
Packing or unpacking with this packager throws an ISOException.
Use IF_NOP if you don't want an exception thrown.
- Version:
- $Id$
- Author:
- jonathan.oconnor@xcom.de
- See Also:
ISOComponent,
IF_NOP
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IF_UNUSED
public IF_UNUSED()
- Parameters:
len - - field lendescription - symbolic descrption
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
getMaxPackedLength
public int getMaxPackedLength()
- Specified by:
getMaxPackedLength in class ISOFieldPackager
Copyright © 1998-2012 jPOS.org. All Rights Reserved.