encoding

 

public int

Specifies the representation used for numeric values in the application message data. This applies to binary, packed decimal and floating point data. The behavior of the read and write methods for these numeric formats is altered accordingly.

The following encodings are defined:

binary

packed decimal

floating point

big-endian

MQC.MQENC_INTEGER_NORMAL

MQC.MQENC_DECIMAL_NORMAL

MQC.MQENC_FLOAT_IEEE_NORMAL

little-endian

MQC.MQENC_INTEGER_REVERSED

MQC.MQENC_DECIMAL_REVERSED

MQC.MQENC_FLOAT_IEEE_REVERSED

zSeries

MQC.MQENC_INTEGER_NORMAL

MQENC_DECIMAL_NORMAL

MQC.MQENC_FLOAT_S390

We can construct a value for the encoding field by combining one value from each row of the table by use of '+' or '|' operators. The default value is MQC.MQENC_INTEGER_NORMAL | MQC.MQENC_DECIMAL_NORMAL | MQC.MQENC_FLOAT_IEEE_NORMAL. For convenience this value is also represented by MQC.MQENC_NATIVE. This setting causes MQMessage.writeInt() to write, for example, a big-endian integer, and MQMessage.readInt() to read a big-endian integer.

A loss in precision can occur when converting from IEEE format floating point values to zSeries format floating point values.


uj13410_