Class AmexConverter<M extends AmexMessage>
java.lang.Object
cl.netswitch.iso.amex8583.AmexConverter<M>
- Type Parameters:
M- the type of the AMEX message.
Converts an
AmexMessage to an another representation.-
Constructor Summary
ConstructorsConstructorDescriptionAmexConverter(AmexFields<M> fields) Constructs a newAmexConverterinstance. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidconvert(M message, AmexWriter<M> writer) Converts the supplied message to an another representation.protected voidpostConvert(M message, AmexWriter<M> writer) Called after a message was converted using a writer.protected voidpreConvert(M message, AmexWriter<M> writer) Called before a message is converted using a writer.
-
Constructor Details
-
AmexConverter
Constructs a newAmexConverterinstance.- Parameters:
fields- the fields that describe a message.- Throws:
NullPointerException- iffieldsisnull.AmexException- 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.AmexException- 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.AmexException- 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.AmexException- if another error occurs.
-