API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. Reader View Source
Author(s)
Mark Reinhold
Since
JDK1.1
Version
1.30, 06/04/07
Serial
Hierarchy
 Object
      Reader
Implements
 Readable
 Closeable
Subclasses
Description
publicabstract abstract class Reader
  Abstract class for reading character streams.
Constructors
protected Reader ()
Creates a new character-stream reader whose critical sections will synchronize on the reader itself.
protected Reader (Object lock)
  Creates a new character-stream reader whose critical sections will synchronize on the given object.
Methods
Hide/Show inherited methods
publicabstract void close () throws IOException [Specified in Closeable]
  Closes the stream and releases any system resources associated with it.
public void mark (int readAheadLimit) throws IOException
  Marks the present position in the stream.
public boolean markSupported ()
  Tells whether this stream supports the mark() operation.
public int read () throws IOException
  Reads a single character.
public int read (char[] cbuf) throws IOException
  Reads characters into an array.
publicabstract int read (char[] cbuf, int off, int len) throws IOException
  Reads characters into a portion of an array.
public int read (CharBuffer target) throws IOException [Specified in Readable]
  Attempts to read characters into the specified character buffer.
public boolean ready () throws IOException
  Tells whether this stream is ready to be read.
public void reset () throws IOException
  Resets the stream.
public long skip (long n) throws IOException
  Skips characters.
Fields
Hide/Show inherited fields
protected Object lock
  The object used to synchronize operations on this stream.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar