readBytes

 

public int readBytes(byte[] value, int length) throws JMSException;

Reads a portion of the bytes message.

Parameters

  • value - the buffer into which the data is read.

  • length - the number of bytes to read.

Returns

  • the total number of bytes read into the buffer, or -1 if there is no more data because the end of the stream has been reached.

Exceptions

  • JMSException - with reason MQJMS_EXCEPTION_MESSAGE_NOT_READABLE

  • IndexOutOfBoundsException - if length is inconsistent with value.

  • MessageEOFException - if end of message stream has been reached


uj25880_