API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. PushbackReader View Source
Author(s)
Mark Reinhold
Since
JDK1.1
Version
1.21, 06/01/24
Serial
Hierarchy
 Object
      Reader
          FilterReader
              PushbackReader
Implements
Subclasses
Description
public class PushbackReader
  A character-stream reader that allows characters to be pushed back into the stream.
See also:   
Constructors
public PushbackReader (Reader in)
  Creates a new pushback reader with a one-character pushback buffer.
public PushbackReader (Reader in, int size)
  Creates a new pushback reader with a pushback buffer of the given size.
Methods
Hide/Show inherited methods
public void close () throws IOException [Overrides FilterReader] [Specified in Reader]
  Closes the stream and releases any system resources associated with it.
public void mark (int readAheadLimit) throws IOException [Overrides FilterReader]
  Marks the present position in the stream.
public boolean markSupported () [Overrides FilterReader]
Tells whether this stream supports the mark() operation, which it does not.
public int read () throws IOException [Overrides FilterReader]
  Reads 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 FilterReader] [Specified in Reader]
  Reads 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 boolean ready () throws IOException [Overrides FilterReader]
  Tells whether this stream is ready to be read.
public void reset () throws IOException [Overrides FilterReader]
  Resets the stream.
public long skip (long n) throws IOException [Overrides FilterReader]
  Skips characters.
public void unread (char[] cbuf) throws IOException
  Pushes back an array of characters by copying it to the front of the pushback buffer.
public void unread (char[] cbuf, int off, int len) throws IOException
  Pushes back a portion of an array of characters by copying it to the front of the pushback buffer.
public void unread (int c) throws IOException
  Pushes back a single character by copying it to the front of the pushback buffer.
Fields
Hide/Show inherited fields
protected Reader in [Inherited From FilterReader]
The underlying character-input stream.
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