If the length of array value
is less than the number of bytes remaining to be read from the stream, the array should be filled. A subsequent call reads the next increment, and so on.
If the number of bytes remaining in the stream is less than the length of array value
, the bytes should be read into the array. The return value of the total number of bytes read will be less than the length of the array, indicating that there are no more bytes left to be read from the stream. The next read of the stream returns -1.
@param value the buffer into which the data is read
@return the total number of bytes read into the buffer, or -1 if there isno more data because the end of the stream has been reached
@throws JMSException if the JMS provider fails to read the message due tosome internal error.
@throws MessageNotReadableException if the message is in write-only mode.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|