Class IF_UNUSED
java.lang.Object
org.jpos.iso.ISOFieldPackager
org.jpos.iso.IF_UNUSED
IF_UNUSED acts as a filler for unused elements of a message packager.
Packing or unpacking with this packager throws an ISOException.
Use IF_NOP if you don't want an exception thrown.
- See Also:
-
Field Summary
Fields inherited from class ISOFieldPackager
pad, trim -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbyte[]pack(ISOComponent c) intunpack(ISOComponent c, byte[] b, int offset) Methods inherited from class ISOFieldPackager
createComponent, getDescription, getLength, pack, readBytes, setDescription, setLength, setPad, setTrim, unpack
-
Constructor Details
-
IF_UNUSED
public IF_UNUSED()
-
-
Method Details
-
pack
- Specified by:
packin classISOFieldPackager- Parameters:
c- - a component- Returns:
- packed component
- Throws:
ISOException
-
unpack
- Specified by:
unpackin classISOFieldPackager- Parameters:
c- - the Component to unpackb- - binary imageoffset- - starting offset within the binary image- Returns:
- consumed bytes
- Throws:
ISOException
-
getMaxPackedLength
- Specified by:
getMaxPackedLengthin classISOFieldPackager
-