API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. LineNumberReader View Source
Author(s)
Mark Reinhold
Since
JDK1.1
Version
1.23, 06/04/07
Serial
Hierarchy
 Object
      Reader
          BufferedReader
              LineNumberReader
Implements
Subclasses
Description
public class LineNumberReader
  A buffered character-input stream that keeps track of line numbers.
See also:   
Constructors
public LineNumberReader (Reader in)
  Create a new line-numbering reader, using the default input-buffer size.
public LineNumberReader (Reader in, int sz)
  Create a new line-numbering reader, reading characters into a buffer of the given size.
Methods
Hide/Show inherited methods
public void close () throws IOException [Inherited From BufferedReader] [Specified in Reader]
public int getLineNumber ()
  Get the current line number.
public void mark (int readAheadLimit) throws IOException [Overrides BufferedReader]
  Mark the present position in the stream.
public boolean markSupported () [Inherited From BufferedReader]
Tells whether this stream supports the mark() operation, which it does.
public int read () throws IOException [Overrides BufferedReader]
  Read a single character.
public int read (char[] cbuf) throws IOException [Inherited From Reader]
  Reads characters into an array.
public int read (char[] cbuf, int off, int len) throws IOException [Overrides BufferedReader] [Specified in Reader]
  Read characters into a portion of an array.
public int read (CharBuffer target) throws IOException [Inherited From Reader]
  Attempts to read characters into the specified character buffer.
public String readLine () throws IOException [Overrides BufferedReader]
  Read a line of text.
pack-private String readLine (boolean ignoreLF) throws IOException [Inherited From BufferedReader]
  Reads a line of text.
public boolean ready () throws IOException [Inherited From BufferedReader]
  Tells whether this stream is ready to be read.
public void reset () throws IOException [Overrides BufferedReader]
  Reset the stream to the most recent mark.
public void setLineNumber (int lineNumber)
  Set the current line number.
public long skip (long n) throws IOException [Overrides BufferedReader]
  Skip characters.
Fields
Hide/Show inherited fields
protected Object lock [Inherited From Reader]
  The object used to synchronize operations on this stream.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar