DataInputStream.readFully
Class Overview | Class Members |
This Package |
All Packages
public final void readFully( byte b[] ) throws IOException
Parameters
- b
- the buffer into which the data is read.
Description
Reads b.length bytes from this data input stream
into the byte array. This method reads repeatedly from the
underlying stream until all the bytes are read. This method blocks
until all the bytes are read, the end of the stream is detected,
or an exception is thrown.
Exceptions
EOFException
if this input stream reaches the end before
reading all the bytes.
Exceptions
IOException
if an I/O error occurs.
See Also
in
public final void readFully( byte b[],
int off,
int len ) throws IOException
Parameters
- b
- the buffer into which the data is read.
- off
- the start offset of the data.
- len
- the number of bytes to read.
Description
Reads exactly len bytes from this data input stream
into the byte array. This method reads repeatedly from the
underlying stream until all the bytes are read. This method blocks
until all the bytes are read, the end of the stream is detected,
or an exception is thrown.
Exceptions
EOFException
if this input stream reaches the end before
reading all the bytes.
Exceptions
IOException
if an I/O error occurs.
See Also
in