jPOS 1.6.1 API Documentation

org.jpos.iso
Class IF_UNUSED

java.lang.Object
  extended by org.jpos.iso.ISOFieldPackager
      extended by 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: IF_UNUSED.java 2594 2008-01-22 16:41:31Z apr $
Author:
jonathan.oconnor@xcom.de
See Also:
ISOComponent, IF_NOP

Constructor Summary
IF_UNUSED()
           
 
Method Summary
 int getMaxPackedLength()
           
 byte[] pack(ISOComponent c)
           
 int unpack(ISOComponent c, byte[] b, int offset)
           
 
Methods inherited from class org.jpos.iso.ISOFieldPackager
createComponent, getDescription, getLength, pack, setDescription, setLength, setPad, unpack
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IF_UNUSED

public IF_UNUSED()
Parameters:
len - - field len
description - symbolic descrption
Method Detail

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 unpack
b - - binary image
offset - - starting offset within the binary image
Returns:
consumed bytes
Throws:
ISOException

getMaxPackedLength

public int getMaxPackedLength()
Specified by:
getMaxPackedLength in class ISOFieldPackager

jPOS.org