readShort

 

public short readShort() throws JMSException;

Reads a signed 16-bit number from the bytes message.

Returns

  • the next two bytes from the bytes message, interpreted as a signed 16-bit number.

Exceptions

  • MessageEOFException - if end of message stream

  • JMSException - with reasons

    • MQJMS_EXCEPTION_MESSAGE_NOT_READABLE

    • MQJMS_EXCEPTION_MESSAGE_EOF

  • IOException - if an I/O error has occurred.


uj25940_