InputStreamReader.read

InputStreamReader.read

Class Overview | Class Members | This Package | All Packages

Syntax 1
public int read() throws IOException
Returns
The character read, or -1 if the end of the stream has been reached
Description
Read a single character.

Exceptions
IOException If an I/O error occurs
Overrides
read in class Reader



Syntax 2
public int read( char cbuf[], int off, int len ) throws IOException
Parameters
cbuf
Destination buffer
off
Offset at which to start storing characters
len
Maximum number of characters to read
Returns
The number of characters read, or -1 if the end of the stream has been reached
Description
Read characters into a portion of an array.

Exceptions
IOException If an I/O error occurs
Overrides
read in class Reader