Java java.io LineNumberReader fields, constructors, methods, implement or subclass

Example usage for Java java.io LineNumberReader fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.io LineNumberReader.

The text is from its open source code.

Subclass

java.io.LineNumberReader has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

voidclose()
intgetLineNumber()
Get the current line number.
voidmark(int readAheadLimit)
Mark the present position in the stream.
booleanmarkSupported()
Tells whether this stream supports the mark() operation, which it does.
intread()
Read a single character.
intread(char cbuf[], int off, int len)
Read characters into a portion of an array.
intread(java.nio.CharBuffer target)
Attempts to read characters into the specified character buffer.
StringreadLine()
Read a line of text.
booleanready()
Tells whether this stream is ready to be read.
voidreset()
Reset the stream to the most recent mark.
voidsetLineNumber(int lineNumber)
Set the current line number.
longskip(long n)
Skip characters.