Reads
len
bytes from the stream, and stores them into
b
starting at index
off
. If the end of the stream is reached, an
EOFException
will be thrown.
The bit offset within the stream is reset to zero before the read occurs.
@param b an array of bytes to be written to.
@param off the starting position within b
to write to.
@param len the maximum number of byte
s to read.
@exception IndexOutOfBoundsException if off
isnegative, len
is negative, or off + len
is greater than b.length
.
@exception NullPointerException if b
isnull
.
@exception EOFException if the stream reaches the end beforereading all the bytes.
@exception IOException if an I/O error occurs.