Introduction
Declaration Public class LineNumberInputStream extends Reader
Fields
Table | Constructor | Description |
|---|---|
| LineNumberInputStream(inputStream in) | The function of this constructor is to create the LineNumberInputStream instance and used to read from input stream. |
Table | Method | Description |
|---|---|
| Long skip (long m) | The function of this method is to skip the bytes in this stream of ‘ m ‘ bytes. |
| int setLineNumber(int LineNumber) | The function of this method is to set line number to the represented argument. |
| int read(byte[] b, int off, int n) | By using this method it reads the data up to ‘n’ bytes from the piped input stream into array of the bytes. |
| int read() | The function of this method is to read one byte of data from this stream. |
Description
Examples
Key Points