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 Type
    Method
    Description
    Creates 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 by fldno in the given message to the log event.
    byte[]
    Packs an ISO-8583 message into a byte array.
    int
    unpack(ISOComponent m, byte[] b)
    Unpacks an ISO-8583 byte array into the given message container.
    void
    Unpacks an ISO-8583 message from an input stream into the given container.
  • Method Details

    • pack

      byte[] pack(ISOComponent m) throws ISOException
      Packs an ISO-8583 message into a byte array.
      Parameters:
      m - the Component to pack
      Returns:
      Message image
      Throws:
      ISOException - on packing error
    • unpack

      int unpack(ISOComponent m, byte[] b) throws ISOException
      Unpacks an ISO-8583 byte array into the given message container.
      Parameters:
      m - the Container of this message
      b - 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 container
      in - the input stream
      Throws:
      IOException - on I/O failure
      ISOException - on unpacking error
    • getDescription

      Returns a human-readable description of this packager.
      Returns:
      Packager's Description
    • getFieldDescription

      Emits a description of the field identified by fldno in 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