Class IFA_AMOUNT2003
java.lang.Object
org.jpos.iso.ISOFieldPackager
org.jpos.iso.ISOStringFieldPackager
org.jpos.iso.IFA_NUMERIC
org.jpos.iso.IFA_AMOUNT2003
ASCII numeric packager that creates
ISOAmount components, used for ISO-8583:2003 amount fields.-
Field Summary
Fields inherited from class ISOFieldPackager
pad, trim -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateComponent(int fieldNumber) Creates anISOComponentinstance appropriate for this packager.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
getDescription, getLength, pack, readBytes, setDescription, setLength, setPadModifier 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.voidsetLength(int len) Sets the maximum field length.voidsetPad(boolean pad) Enables or disables padding for this field.
-
Constructor Details
-
IFA_AMOUNT2003
public IFA_AMOUNT2003()Default constructor; no instance state to initialise.
-
-
Method Details
-
createComponent
Description copied from class:ISOFieldPackagerCreates anISOComponentinstance appropriate for this packager.- Overrides:
createComponentin classISOFieldPackager- Parameters:
fieldNumber- the field number to assign to the new component- Returns:
- a new ISOComponent
-