Class IFTA_LLLNUM
java.lang.Object
org.jpos.iso.ISOFieldPackager
org.jpos.iso.ISOStringFieldPackager
org.jpos.iso.IFA_LLLNUM
org.jpos.tlv.packager.IFTA_LLLNUM
- All Implemented Interfaces:
TaggedFieldPackager
-
Field Summary
Fields inherited from class ISOFieldPackager
pad, trim -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateComponent(int fieldNumber) protected ISOFieldPackagergetToken()byte[]pack(ISOComponent c) Convert the component into a byte[].voidpack(ISOComponent c, ObjectOutput out) protected byte[]voidintunpack(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.protected intunpackTag(ISOComponent c, byte[] tagBytes, int offset) protected voidunpackTag(ISOComponent c, InputStream in) Methods inherited from class IFA_LLLNUM
setLengthMethods inherited from class ISOStringFieldPackager
checkLength, getMaxPackedLength, setInterpreter, setPadder, setPrefixer, setTrimMethods inherited from class ISOFieldPackager
getDescription, getLength, readBytes, setDescription, setPad
-
Constructor Details
-
IFTA_LLLNUM
public IFTA_LLLNUM() -
IFTA_LLLNUM
-
-
Method Details
-
createComponent
- Overrides:
createComponentin classISOFieldPackager
-
setToken
- Specified by:
setTokenin interfaceTaggedFieldPackager
-
getToken
- Specified by:
getTokenin interfaceTaggedFieldPackager
-
getTagPackager
-
packTag
- Throws:
ISOException
-
unpackTag
- Throws:
ISOException
-
unpackTag
- Throws:
ISOExceptionIOException
-
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
-
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
-
unpack
Description copied from class:ISOStringFieldPackagerUnpack the input stream into the component.- Overrides:
unpackin classISOStringFieldPackager- Parameters:
c- The Component to unpack into.in- Input stream where the packed bytes come from.- Throws:
IOException- Thrown if there's a problem reading the input stream.ISOException
-
pack
- Overrides:
packin classISOFieldPackager- Parameters:
c- - the Component to unpackout- - output stream- Throws:
IOExceptionISOException
-