Interface ISOPackager
- All Known Subinterfaces:
ISODatasetPackager
- All Known Implementing Classes:
Base1Packager, Base1Packager.F126Packager, Base1Packager.F127Packager, Base1SubFieldPackager, BASE24Packager, BERTLVAsciiHexPackager, BERTLVBinaryPackager, BERTLVEbcdicHexPackager, BERTLVPackager, BinaryHexTaggedSequencePackager, CTCSubElementPackager, CTCSubFieldPackager, DatasetPackager, DefaultICCBERTLVPackager, DummyPackager, EuroPackager, EuroPackager.Euro48Packager, EuroSubFieldPackager, FSDPackager, GenericPackager, GenericSubFieldPackager, GenericTaggedFieldsPackager, GenericValidatingPackager, GICCSubFieldPackager, ICCDataPackager, ISO87APackager, ISO87APackagerBBitmap, ISO87BPackager, ISO93APackager, ISO93BPackager, ISOBasePackager, ISOBaseValidatingPackager, LogPackager, MasterCardEBCDICSubFieldPackager, NativePackager, PackagerWrapper, PostPackager, PostPackager.PostPrivatePackager, TaggedSequencePackager, VAPSMSPackager, VAPVIPPackager, VAPVIPPackager.F127Packager, VISA1Packager, X92GenericPackager, X92Packager, XML2003Packager, XMLPackager
public interface ISOPackager
Core interface for ISO-8583 packagers; responsible for packing and unpacking
ISOMsg instances.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCreates and returns a new ISOMsg instance appropriate for this packager.Returns a human-readable description of this packager.getFieldDescription(ISOComponent m, int fldNumber) Emits a description of the field identified byfldnoin the given message to the log event.byte[]pack(ISOComponent m) Packs an ISO-8583 message into a byte array.intunpack(ISOComponent m, byte[] b) Unpacks an ISO-8583 byte array into the given message container.voidunpack(ISOComponent m, InputStream in) Unpacks an ISO-8583 message from an input stream into the given container.
-
Method Details
-
pack
Packs an ISO-8583 message into a byte array.- Parameters:
m- the Component to pack- Returns:
- Message image
- Throws:
ISOException- on packing error
-
unpack
Unpacks an ISO-8583 byte array into the given message container.- Parameters:
m- the Container of this messageb- ISO message image- Returns:
- consumed bytes
- Throws:
ISOException- on unpacking error
-
unpack
Unpacks an ISO-8583 message from an input stream into the given container.- Parameters:
m- the containerin- the input stream- Throws:
IOException- on I/O failureISOException- on unpacking error
-
getDescription
Returns a human-readable description of this packager.- Returns:
- Packager's Description
-
getFieldDescription
Emits a description of the field identified byfldnoin the given message to the log event.- Parameters:
m- the Container (i.e. an ISOMsg)fldNumber- the Field Number- Returns:
- Field Description
-
createISOMsg
Creates and returns a new ISOMsg instance appropriate for this packager.- Returns:
- a new ISOMsg
-