API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. LineNumberInputStream View Source
Author(s)
Arthur van Hoff
Since
JDK1.0
Version
1.28, 11/17/05
Serial
Hierarchy
 Object
      InputStream
          FilterInputStream
              LineNumberInputStream
Implements
Subclasses
Description
@Deprecated
public class LineNumberInputStream
  This class is an input stream filter that provides the added functionality of keeping track of the current line number.
See also:    LineNumberReader
Constructors
public LineNumberInputStream (InputStream in)
  Constructs a newline number input stream that reads its input from the specified input stream.
Methods
Hide/Show inherited methods
public int available () throws IOException [Overrides FilterInputStream]
  Returns the number of bytes that can be read from this input stream without blocking.
public void close () throws IOException [Inherited From FilterInputStream]
  Closes this input stream and releases any system resources associated with the stream.
public int getLineNumber ()
  Returns the current line number.
public void mark (int readlimit) [Overrides FilterInputStream]
  Marks the current position in this input stream.
public boolean markSupported () [Inherited From FilterInputStream]
  Tests if this input stream supports the mark and reset methods.
public int read () throws IOException [Overrides FilterInputStream] [Specified in InputStream]
  Reads the next byte of data from this input stream.
public int read (byte[] b) throws IOException [Inherited From FilterInputStream]
  Reads up to byte.length bytes of data from this input stream into an array of bytes.
public int read (byte[] b, int off, int len) throws IOException [Overrides FilterInputStream]
  Reads up to len bytes of data from this input stream into an array of bytes.
public void reset () throws IOException [Overrides FilterInputStream]
  Repositions this stream to the position at the time the mark method was last called on this input stream.
public void setLineNumber (int lineNumber)
  Sets the line number to the specified argument.
public long skip (long n) throws IOException [Overrides FilterInputStream]
  Skips over and discards n bytes of data from this input stream.
Fields
Hide/Show inherited fields
protectedvolatile InputStream in [Inherited From FilterInputStream]
The input stream to be filtered.
pack-private int lineNumber
pack-private int markLineNumber
pack-private int markPushBack
pack-private int pushBack
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar