java.lang.Object
cl.netswitch.iso.vip8583.VipConverter<M>
- Type Parameters:
M
- the type of the VIP message.
Converts a
VipMessage
to an another representation.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
Converts the supplied message to an another representation.protected void
postConvert
(M message, VipWriter<M> writer) Called after a message was converted using a writer.protected void
preConvert
(M message, VipWriter<M> writer) Called before a message is converted using a writer.
-
Constructor Details
-
VipConverter
Constructs a newVipConverter
instance.- Parameters:
fields
- the fields that describe a message.- Throws:
NullPointerException
- iffields
isnull
.VipException
- 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
.VipException
- 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
.VipException
- 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
.VipException
- if another error occurs.
-