Class IFB_FLLNUM
java.lang.Object
org.jpos.iso.ISOFieldPackager
org.jpos.iso.ISOStringFieldPackager
org.jpos.iso.IFB_FLLNUM
-
Field Summary
Fields inherited from class ISOFieldPackager
pad, trim -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.IFB_FLLNUM(int len, String description, boolean isLeftPadded) Constructs a packager with the given length and description. -
Method Summary
Methods inherited from class ISOStringFieldPackager
checkLength, getMaxPackedLength, pack, setInterpreter, setPadder, setPrefixer, setTrim, unpack, unpackModifier and TypeMethodDescriptionprotected voidcheckLength(int len, int maxLength) Checks the length of the data against the maximum, and throws an IllegalArgumentException.intReturns the prefixer's packed length and the interpreter's packed length.byte[]pack(ISOComponent c) Convert the component into a byte[].voidsetInterpreter(Interpreter interpreter) Sets the Interpreter.voidSets the Padder.voidsetPrefixer(Prefixer prefixer) Sets the length prefixer.voidsetTrim(boolean trim) Enables or disables trimming for this field.intunpack(ISOComponent c, byte[] b, int offset) Unpacks the byte array into the component.voidunpack(ISOComponent c, InputStream in) Unpack the input stream into the component.Methods inherited from class ISOFieldPackager
createComponent, getDescription, getLength, pack, readBytes, setDescriptionModifier and TypeMethodDescriptioncreateComponent(int fieldNumber) Creates anISOComponentinstance appropriate for this packager.Returns 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.
-
Constructor Details
-
IFB_FLLNUM
public IFB_FLLNUM()Default constructor. -
IFB_FLLNUM
Constructs a packager with the given length and description.- Parameters:
len- - field lendescription- symbolic descrptionisLeftPadded- if true, apply padding
-
-
Method Details
-
setLength
Description copied from class:ISOFieldPackagerSets the maximum field length.- Overrides:
setLengthin classISOFieldPackager- Parameters:
len- the maximum length
-
setPad
Must override ISOFieldPackager method to set the Interpreter correctly- Overrides:
setPadin classISOFieldPackager- Parameters:
pad- true to enable padding
-