Package org.jpos.iso
Class IFIPM_LLLCHAR
- java.lang.Object
-
- org.jpos.iso.ISOFieldPackager
-
- org.jpos.iso.IFIPM_LLLCHAR
-
public class IFIPM_LLLCHAR extends ISOFieldPackager
Similar to Europay format, but instead of LLTT it's TTTTLLLFormat TTLL.... Where TTTT is the 4 digit field number (Tag) LLL is the 3 digit field length .. is the field content
- See Also:
IFEP_LLCHAR
-
-
Field Summary
-
Fields inherited from class org.jpos.iso.ISOFieldPackager
pad, trim
-
-
Constructor Summary
Constructors Constructor Description IFIPM_LLLCHAR()
IFIPM_LLLCHAR(int len, java.lang.String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxPackedLength()
byte[]
pack(ISOComponent c)
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, setPad, setTrim
-
-
-
-
Constructor Detail
-
IFIPM_LLLCHAR
public IFIPM_LLLCHAR()
-
IFIPM_LLLCHAR
public IFIPM_LLLCHAR(int len, java.lang.String description)
- Parameters:
len
- - field lendescription
- symbolic descrption
-
-
Method Detail
-
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
-
-