Class IFEB_LLNUM
java.lang.Object
org.jpos.iso.ISOFieldPackager
org.jpos.iso.IFEB_LLNUM
Uses a 2 EBCDIC byte length field.
right-justified with leading 0
and packed data as BCD. 2 BCD digits
per byte and adding the value hex(0xF)
for padding if length is odd.
- See Also:
-
Field Summary
Fields inherited from class ISOFieldPackager
pad, trim -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbyte[]pack(ISOComponent c) intunpack(ISOComponent c, byte[] b, int offset) voidunpack(ISOComponent c, InputStream in) Methods inherited from class ISOFieldPackager
createComponent, getDescription, getLength, pack, readBytes, setDescription, setLength, setPad, setTrim
-
Constructor Details
-
IFEB_LLNUM
public IFEB_LLNUM() -
IFEB_LLNUM
- Parameters:
len- - field lendescription- symbolic descrption
-
-
Method Details
-
pack
- Specified by:
packin classISOFieldPackager- Parameters:
c- - a component- Returns:
- packed component
- Throws:
ISOException
-
unpack
- Specified by:
unpackin classISOFieldPackager- Parameters:
c- - the Component to unpackb- - binary imageoffset- - starting offset within the binary image- Returns:
- consumed bytes
- Throws:
ISOException
-
unpack
- Overrides:
unpackin classISOFieldPackager- Parameters:
c- - the Component to unpackin- - input stream- Throws:
ISOExceptionIOException
-
getMaxPackedLength
- Specified by:
getMaxPackedLengthin classISOFieldPackager
-