Class IsoTlvDecoder<M extends IsoMessage>

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

public abstract class IsoTlvDecoder<M extends IsoMessage> extends IsoDecoder<M>
An IsoDecoder with TLV (Tag-Length-Value) support.
  • Constructor Details

    • IsoTlvDecoder

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

    • decodeTLV2

      protected void decodeTLV2(String tlv, boolean hasTCC, IsoTlvElements elements)
      Decodes subelements in a TLV string "[TCC][ID][LL][DATA]...".
      Parameters:
      tlv - a TLV string "[TCC][ID][LL][DATA]...".
      hasTCC - if true parse "Transaction Category Code".
      elements - where the TCC and subelements are stored.
      Throws:
      NullPointerException - if an argument is null.
      IsoException - if an expected decode error occurs.
    • decodeTLV3

      protected void decodeTLV3(String tlv, IsoTlvElements elements)
      Decodes subelements in a TLV string "[ID][LLL][DATA]...".
      Parameters:
      tlv - a TLV string "[ID][LLL][DATA]...".
      elements - where the subelements are stored.
      Throws:
      NullPointerException - if an argument is null.
      IsoException - if an expected decode error occurs.