Class IsoConverter<M extends IsoMessage>
java.lang.Object
cl.netswitch.iso.iso8583.IsoConverter<M>
- Type Parameters:
M- the type of the ISO message.
Converts an
IsoMessage to an another representation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidConverts the supplied message to an another representation.protected voidpostConvert(M message, IsoWriter<M> writer) Called after a message was converted using a writer.protected voidpreConvert(M message, IsoWriter<M> writer) Called before a message is converted using a writer.
-
Constructor Details
-
IsoConverter
Constructs a newIsoConverterinstance.- Parameters:
fields- the fields that describe a message.- Throws:
NullPointerException- iffieldsisnull.IsoException- if MTI field is not defined infields.
-
-
Method Details
-
convert
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 isnull.IsoException- if another error occurs.
-
preConvert
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 isnull.IsoException- if another error occurs.
-
postConvert
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 isnull.IsoException- if another error occurs.
-