Example usage for Java java.io LineNumberReader fields, constructors, methods, implement or subclass
The text is from its open source code.
LineNumberReader(Reader in) Create a new line-numbering reader, using the default input-buffer size. | |
LineNumberReader(Reader in, int sz) Create a new line-numbering reader, reading characters into a buffer of the given size. |
void | close() |
int | getLineNumber() Get the current line number. |
void | mark(int readAheadLimit) Mark the present position in the stream. |
boolean | markSupported() Tells whether this stream supports the mark() operation, which it does. |
int | read() Read a single character. |
int | read(char cbuf[], int off, int len) Read characters into a portion of an array. |
int | read(java.nio.CharBuffer target) Attempts to read characters into the specified character buffer. |
String | readLine() Read a line of text. |
boolean | ready() Tells whether this stream is ready to be read. |
void | reset() Reset the stream to the most recent mark. |
void | setLineNumber(int lineNumber) Set the current line number. |
long | skip(long n) Skip characters. |