mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
5087440: java.io bulk read(...) end-of-stream return value descriptions ambiguous
Reviewed-by: rriggs, lancea
This commit is contained in:
parent
36b9baa70d
commit
f76f5da016
3 changed files with 14 additions and 9 deletions
|
@ -1031,8 +1031,9 @@ public class ObjectInputStream
|
|||
* @param buf the buffer into which the data is read
|
||||
* @param off the start offset in the destination array {@code buf}
|
||||
* @param len the maximum number of bytes read
|
||||
* @return the actual number of bytes read, -1 is returned when the end of
|
||||
* the stream is reached.
|
||||
* @return the total number of bytes read into the buffer, or
|
||||
* {@code -1} if there is no more data because the end of
|
||||
* the stream has been reached.
|
||||
* @throws NullPointerException if {@code buf} is {@code null}.
|
||||
* @throws IndexOutOfBoundsException if {@code off} is negative,
|
||||
* {@code len} is negative, or {@code len} is greater than
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue