LineNumberInputStream Members

LineNumberInputStream Members

Class Overview | This Package | All Packages

Constructors
Name Description
LineNumberInputStream(InputStream) Constructs a newline number input stream that reads its input from the specified input stream.

Methods
Name Description
available() Returns the number of bytes that can be read from this input stream without blocking.
getLineNumber() Returns the current line number.
mark(int) Marks the current position in this input stream.
read() Reads the next byte of data from this input stream.
read(byte[], int, int) Reads up to len bytes of data from this input stream into an array of bytes.
reset() Repositions this stream to the position at the time the mark method was last called on this input stream.
setLineNumber(int) Sets the line number to the specified argument.
skip(long) Skips over and discards n bytes of data from the input stream.