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.
An
IsoDecoder with TLV (Tag-Length-Value) support.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddecodeTLV2(String tlv, boolean hasTCC, IsoTlvElements elements) Decodes subelements in a TLV string "[TCC][ID][LL][DATA]...".protected voiddecodeTLV3(String tlv, IsoTlvElements elements) Decodes subelements in a TLV string "[ID][LLL][DATA]...".Methods inherited from class IsoDecoder
decode, postDecode, preDecode
-
Constructor Details
-
IsoTlvDecoder
Constructs a newIsoTlvDecoderinstance.- Parameters:
fields- the fields that describe a message.- Throws:
NullPointerException- iffieldsisnull.IsoException- if required fields are not defined.
-
-
Method Details
-
decodeTLV2
Decodes subelements in a TLV string "[TCC][ID][LL][DATA]...".- Parameters:
tlv- a TLV string "[TCC][ID][LL][DATA]...".hasTCC- iftrueparse "Transaction Category Code".elements- where the TCC and subelements are stored.- Throws:
NullPointerException- if an argument isnull.IsoException- if an expected decode error occurs.
-
decodeTLV3
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 isnull.IsoException- if an expected decode error occurs.
-