Class IFEMC_TCC
java.lang.Object
org.jpos.iso.ISOFieldPackager
org.jpos.iso.ISOStringFieldPackager
org.jpos.iso.IFE_CHAR
org.jpos.iso.IFEMC_TCC
-
Field Summary
Fields inherited from class ISOFieldPackager
pad, trim -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]pack(ISOComponent c) Convert the component into a byte[].intunpack(ISOComponent c, byte[] b, int offset) Unpacks the byte array into the component.Methods inherited from class ISOStringFieldPackager
checkLength, getMaxPackedLength, setInterpreter, setPadder, setPrefixer, setTrim, 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.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.voidunpack(ISOComponent c, InputStream in) Unpack the input stream into the component.Methods inherited from class ISOFieldPackager
createComponent, getDescription, getLength, pack, readBytes, setDescription, setLength, setPadModifier 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.voidsetLength(int len) Sets the maximum field length.voidsetPad(boolean pad) Enables or disables padding for this field.
-
Constructor Details
-
IFEMC_TCC
public IFEMC_TCC()Default constructor; no instance state to initialise.
-
-
Method Details
-
pack
Description copied from class:ISOStringFieldPackagerConvert the component into a byte[].- Overrides:
packin classISOStringFieldPackager- Parameters:
c- - a component- Returns:
- byte array representation of component
- Throws:
ISOException- on pack/unpack error
-
unpack
Description copied from class:ISOStringFieldPackagerUnpacks the byte array into the component.- Overrides:
unpackin classISOStringFieldPackager- Parameters:
c- The component to unpack into.b- The byte array to unpack.offset- The index in the byte array to start unpacking from.- Returns:
- The number of bytes consumed unpacking the component.
- Throws:
ISOException- on unpacking error
-