LineNumberReader.read
Class Overview | Class Members |
This Package |
All Packages
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
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