ObjectInputStream.readFully

ObjectInputStream.readFully

Class Overview | Class Members | This Package | All Packages

Syntax 1
public void readFully( byte data[] ) throws IOException
Parameters
b
the buffer into which the data is read
Description
Reads bytes, blocking until all bytes are read.

Exceptions
EOFException If end of file is reached.
Exceptions
IOException If other I/O error has occurred.



Syntax 2
public void readFully( byte data[], int offset, int size ) throws IOException
Parameters
b
the buffer into which the data is read
off
the start offset of the data
len
the maximum number of bytes to read
Description
Reads bytes, blocking until all bytes are read.

Exceptions
EOFException If end of file is reached.
Exceptions
IOException If other I/O error has occurred.