CheckedInputStream.read

CheckedInputStream.read

Class Overview | Class Members | This Package | All Packages

Syntax 1
public int read() throws IOException
Returns
the byte read, or -1 if the end of the stream is reached.
Description
Reads a byte. Will block if no input is available.

Exceptions
IOException if an I/O error has occurred
Overrides
read in class FilterInputStream



Syntax 2
public int read( byte buf[], int off, int len ) throws IOException
Parameters
buf
the buffer into which the data is read
off
the start offset of the data
len
the maximum number of bytes read
Returns
the actual number of bytes read, or -1 if the end of the stream is reached.
Description
Reads into an array of bytes. Will block until some input is available.

Exceptions
IOException if an I/O error has occurred
Overrides
read in class FilterInputStream