Package org.jpos.iso
Class IFEP_LLLBINARY
- java.lang.Object
-
- org.jpos.iso.ISOFieldPackager
-
- org.jpos.iso.ISOBinaryFieldPackager
-
- org.jpos.iso.IFEP_LLLBINARY
-
- All Implemented Interfaces:
GenericPackagerParams
public class IFEP_LLLBINARY extends ISOBinaryFieldPackager implements GenericPackagerParams
-
-
Field Summary
-
Fields inherited from class org.jpos.iso.ISOFieldPackager
pad, trim
-
-
Constructor Summary
Constructors Constructor Description IFEP_LLLBINARY()
IFEP_LLLBINARY(int length, java.lang.String description)
IFEP_LLLBINARY(int length, java.lang.String description, BinaryInterpreter binaryInterpreter, Prefixer prefixer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxPackedLength()
byte[]
pack(ISOComponent c)
Convert the component into a byte[].void
setGenericPackagerParams(org.xml.sax.Attributes atts)
int
unpack(ISOComponent c, byte[] b, int offset)
void
unpack(ISOComponent c, java.io.InputStream in)
Unpack from an input stream-
Methods inherited from class org.jpos.iso.ISOBinaryFieldPackager
checkLength, createComponent, setInterpreter, setPrefixer
-
Methods inherited from class org.jpos.iso.ISOFieldPackager
getDescription, getLength, pack, readBytes, setDescription, setLength, setPad, setTrim
-
-
-
-
Constructor Detail
-
IFEP_LLLBINARY
public IFEP_LLLBINARY()
-
IFEP_LLLBINARY
public IFEP_LLLBINARY(int length, java.lang.String description)
-
IFEP_LLLBINARY
public IFEP_LLLBINARY(int length, java.lang.String description, BinaryInterpreter binaryInterpreter, Prefixer prefixer)
-
-
Method Detail
-
setGenericPackagerParams
public void setGenericPackagerParams(org.xml.sax.Attributes atts)
- Specified by:
setGenericPackagerParams
in interfaceGenericPackagerParams
-
pack
public byte[] pack(ISOComponent c) throws ISOException
Description copied from class:ISOBinaryFieldPackager
Convert the component into a byte[].- Overrides:
pack
in classISOBinaryFieldPackager
- Parameters:
c
- - a component- Returns:
- packed component
- Throws:
ISOException
-
unpack
public int unpack(ISOComponent c, byte[] b, int offset) throws ISOException
- Overrides:
unpack
in classISOBinaryFieldPackager
- 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
Description copied from class:ISOBinaryFieldPackager
Unpack from an input stream- Overrides:
unpack
in classISOBinaryFieldPackager
- Parameters:
c
- - the Component to unpackin
- - input stream- Throws:
ISOException
java.io.IOException
-
getMaxPackedLength
public int getMaxPackedLength()
- Overrides:
getMaxPackedLength
in classISOBinaryFieldPackager
-
-