Class IsoConverter<M extends IsoMessage>

java.lang.Object
cl.netswitch.iso.iso8583.IsoConverter<M>
Type Parameters:
M - the type of the ISO message.

public class IsoConverter<M extends IsoMessage> extends Object
Converts an IsoMessage to an another representation.
  • Constructor Details

    • IsoConverter

      public IsoConverter(IsoFields<M> fields)
      Constructs a new IsoConverter instance.
      Parameters:
      fields - the fields that describe a message.
      Throws:
      NullPointerException - if fields is null.
      IsoException - if MTI field is not defined in fields.
  • Method Details

    • convert

      public final void convert(M message, IsoWriter<M> writer)
      Converts the supplied message to an another representation.
      Parameters:
      message - the message to be converted.
      writer - the writer used to convert the message.
      Throws:
      NullPointerException - if an argument is null.
      IsoException - if another error occurs.
    • preConvert

      protected void preConvert(M message, IsoWriter<M> writer)
      Called before a message is converted using a writer.
      Parameters:
      message - the message to be converted.
      writer - the writer used to convert the message.
      Throws:
      NullPointerException - if an argument is null.
      IsoException - if another error occurs.
    • postConvert

      protected void postConvert(M message, IsoWriter<M> writer)
      Called after a message was converted using a writer.
      Parameters:
      message - the message that was converted.
      writer - the writer used to convert the message.
      Throws:
      NullPointerException - if an argument is null.
      IsoException - if another error occurs.