* @exception MessageNotReadableException If the message body is write-only.
* @exception JMSException If an exception occurs while reading the bytes.
*/
public int readBytes(byte[] value, int length) throws JMSException {
if (! RObody)
throw new MessageNotReadableException("Can't read the message body as"
+ " it is write-only.");
if (length > value.length || length < 0)
throw new IndexOutOfBoundsException("Invalid length parameter: "
+ length);
int counter = 0;