LineNumberReader.read

LineNumberReader.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. Line terminators are compressed into single newline ('\n') characters.

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



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 bytes read, or -1 if the end of the stream has already been reached
Description
Read characters into a portion of an array.

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