writeDecimal2

 

public void writeDecimal2(short v) throws IOException;

Writes a 2-byte packed decimal format number into the message buffer at the current position. The behavior of this method is determined by encoding. A value of MQC.MQENC_DECIMAL_NORMAL writes a big-endian packed decimal and a value of MQC.MQENC_DECIMAL_REVERSED writes a little-endian packed decimal.

Parameters

  • v - is the number to be written in the range -999 to 999.

Exceptions

  • IOException - if there is a problem with IO.


uj14110_