org.jpos.iso
Class IFA_LLBNUM

java.lang.Object
  extended by org.jpos.iso.ISOFieldPackager
      extended by org.jpos.iso.IFA_LLBNUM

public class IFA_LLBNUM
extends ISOFieldPackager

Length is represented in ASCII (as in IFA_LL*) Value is represented in BCD ISOFieldPackager Binary LLNUM

Author:
Mladen Mrkic
See Also:
ISOComponent

Field Summary
 
Fields inherited from class org.jpos.iso.ISOFieldPackager
pad
 
Constructor Summary
IFA_LLBNUM()
           
IFA_LLBNUM(int len, String description, boolean pad)
           
 
Method Summary
 int getMaxPackedLength()
           
 byte[] pack(ISOComponent c)
           
 void setPad(boolean pad)
           
 int unpack(ISOComponent c, byte[] b, int offset)
           
 void unpack(ISOComponent c, InputStream in)
           
 
Methods inherited from class org.jpos.iso.ISOFieldPackager
createComponent, getDescription, getLength, pack, readBytes, setDescription, setLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IFA_LLBNUM

public IFA_LLBNUM()

IFA_LLBNUM

public IFA_LLBNUM(int len,
                  String description,
                  boolean pad)
Parameters:
len - - field len
description - symbolic descrption
Method Detail

setPad

public void setPad(boolean pad)
Overrides:
setPad in class ISOFieldPackager

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

unpack

public void unpack(ISOComponent c,
                   InputStream in)
            throws IOException,
                   ISOException
Overrides:
unpack in class ISOFieldPackager
Parameters:
c - - the Component to unpack
in - - input stream
Throws:
ISOException
IOException

getMaxPackedLength

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


Copyright © 1998-2012 jPOS.org. All Rights Reserved.