Class IFA_LLLLLLBINARY
java.lang.Object
org.jpos.iso.ISOFieldPackager
org.jpos.iso.ISOBinaryFieldPackager
org.jpos.iso.IFA_LLLLLLBINARY
ISOFieldPackager ASCII variable len BINARY
- See Also:
-
Field Summary
Fields inherited from class ISOFieldPackager
pad, trim -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.IFA_LLLLLLBINARY(int len, String description) Constructs a packager with the given length and description. -
Method Summary
Methods inherited from class ISOBinaryFieldPackager
checkLength, createComponent, getMaxPackedLength, pack, setInterpreter, setPrefixer, unpack, unpackModifier and TypeMethodDescriptionprotected voidcheckLength(int len, int maxLength) Checks the length of the data against the maximum, and throws an IllegalArgumentException.createComponent(int fieldNumber) component factoryintReturns the maximum number of bytes this packager can produce.byte[]pack(ISOComponent c) Convert the component into a byte[].voidsetInterpreter(BinaryInterpreter interpreter) Sets the Interpreter.voidsetPrefixer(Prefixer prefixer) Sets the length prefixer.intunpack(ISOComponent c, byte[] b, int offset) Unpacks a field from the binary image into the given component.voidunpack(ISOComponent c, InputStream in) Unpack from an input streamMethods inherited from class ISOFieldPackager
getDescription, getLength, pack, readBytes, setDescription, setPad, setTrimModifier and TypeMethodDescriptionReturns the field description.intReturns the maximum field length.voidpack(ISOComponent c, ObjectOutput out) Packs the component to an ObjectOutput stream.protected byte[]readBytes(InputStream in, int l) Reads exactlylbytes from the input stream.voidsetDescription(String description) Sets the field description.voidsetPad(boolean pad) Enables or disables padding for this field.voidsetTrim(boolean trim) Enables or disables trimming for this field.
-
Constructor Details
-
IFA_LLLLLLBINARY
public IFA_LLLLLLBINARY()Default constructor. -
IFA_LLLLLLBINARY
Constructs a packager with the given length and description.- Parameters:
len- - field lendescription- symbolic descrption
-
-
Method Details
-
setLength
Description copied from class:ISOFieldPackagerSets the maximum field length.- Overrides:
setLengthin classISOFieldPackager- Parameters:
len- the maximum length
-