LineNumberReader Members

LineNumberReader Members

Class Overview | This Package | All Packages

Constructors
Name Description
LineNumberReader(Reader) Create a new line-numbering reader, using the default input-buffer size.
LineNumberReader(Reader, int) Create a new line-numbering reader, reading characters into a buffer of the given size.

Methods
Name Description
getLineNumber() Get the current line number.
mark(int) Mark the present position in the stream.
read() Read a single character.
read(char[], int, int) Read characters into a portion of an array.
readLine() Read a line of text.
reset() Reset the stream to the most recent mark.
setLineNumber(int) Set the current line number.
skip(long) Skip characters.