Introduction
Declaration Public class LineNumberReader extends BufferedReader
Fields
Table | Constructor | Description |
|---|---|
| LineNumberReader(Reader in) | The function of this constructor is to create the LineNumberReader instance and used to read from input stream. |
| LineNumberReader(Reader in, int size) | The function of this constructor is to create the LineNumberReader instance and used to read characters based on specified size of buffer. |
Table | Method | Description |
|---|---|
| void close () | The function of this method is to close the present stream and associated to input stream systems resources are released. |
| void setLineNumber(int LineNumber) | The function of this method is to set line number to the represented argument. |
| int read(Char[] cbuf, int off, int n) | By using this method it reads the data up to ‘n’ length from the character stream into an array of characters. |
| Long skip (long m) | The function of this method is to skip the text or characters in this stream of ‘ m ‘ characters. |
| int read() | The function of this method is to read only one character. |
Description
Examples
Key Points