Package org.jpos.iso
Class IFA_LLBNUM
- java.lang.Object
-
- org.jpos.iso.ISOFieldPackager
-
- 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- See Also:
ISOComponent
-
-
Field Summary
-
Fields inherited from class org.jpos.iso.ISOFieldPackager
pad, trim
-
-
Constructor Summary
Constructors Constructor Description IFA_LLBNUM()
IFA_LLBNUM(int len, java.lang.String description, boolean pad)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxPackedLength()
byte[]
pack(ISOComponent c)
void
setPad(boolean pad)
int
unpack(ISOComponent c, byte[] b, int offset)
void
unpack(ISOComponent c, java.io.InputStream in)
-
Methods inherited from class org.jpos.iso.ISOFieldPackager
createComponent, getDescription, getLength, pack, readBytes, setDescription, setLength, setTrim
-
-
-
-
Constructor Detail
-
IFA_LLBNUM
public IFA_LLBNUM()
-
IFA_LLBNUM
public IFA_LLBNUM(int len, java.lang.String description, boolean pad)
- Parameters:
len
- - field lendescription
- symbolic descrption
-
-
Method Detail
-
setPad
public void setPad(boolean pad)
- Overrides:
setPad
in classISOFieldPackager
-
pack
public byte[] pack(ISOComponent c) throws ISOException
- Specified by:
pack
in classISOFieldPackager
- 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 classISOFieldPackager
- 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, java.io.InputStream in) throws java.io.IOException, ISOException
- Overrides:
unpack
in classISOFieldPackager
- Parameters:
c
- - the Component to unpackin
- - input stream- Throws:
ISOException
java.io.IOException
-
getMaxPackedLength
public int getMaxPackedLength()
- Specified by:
getMaxPackedLength
in classISOFieldPackager
-
-