Example usage for Java java.io LineNumberInputStream fields, constructors, methods, implement or subclass
The text is from its open source code.
LineNumberInputStream(InputStream in) Constructs a newline number input stream that reads its input from the specified input stream. |
int | available() Returns the number of bytes that can be read from this input stream without blocking. |
int | getLineNumber() Returns the current line number. |
void | mark(int readlimit) Marks the current position in this input stream. |
boolean | markSupported() Tests if this input stream supports the mark and reset methods. |
int | read() Reads the next byte of data from this input stream. |
int | read(byte b[], int off, int len) Reads up to len bytes of data from this input stream into an array of bytes. |
void | reset() Repositions this stream to the position at the time the mark method was last called on this input stream. |
void | setLineNumber(int lineNumber) Sets the line number to the specified argument. |
long | skip(long n) Skips over and discards n bytes of data from this input stream. |