readBytes

 

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

Reads a byte array from the bytes message. If there are sufficient bytes remaining in the stream the entire buffer is filled. If not, the buffer is partially filled.

Parameters

  • value - the buffer into which the data is 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

  • MessageEOFException - if end of message stream has been reached


uj25870_