API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. CharArrayReader View Source
Author(s)
Herb Jellinek
Since
JDK1.1
Version
1.25, 11/17/05
Serial
Hierarchy
 Object
      Reader
          CharArrayReader
Implements
Subclasses
Description
public class CharArrayReader
  This class implements a character buffer that can be used as a character-input stream.
See also:   
Constructors
public CharArrayReader (char[] buf)
  Creates a CharArrayReader from the specified array of chars.
public CharArrayReader (char[] buf, int offset, int length)
  Creates a CharArrayReader from the specified array of chars.
Methods
Hide/Show inherited methods
public void close () [Specified in Reader]
  Closes the stream and releases any system resources associated with it.
public void mark (int readAheadLimit) throws IOException [Overrides Reader]
  Marks the present position in the stream.
public boolean markSupported () [Overrides Reader]
Tells whether this stream supports the mark() operation, which it does.
public int read () throws IOException [Overrides Reader]
  Reads a single character.
public int read (char[] cbuf) throws IOException [Inherited From Reader]
  Reads characters into an array.
public int read (char[] b, int off, int len) throws IOException [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 Reader]
  Tells whether this stream is ready to be read.
public void reset () throws IOException [Overrides Reader]
  Resets the stream to the most recent mark, or to the beginning if it has never been marked.
public long skip (long n) throws IOException [Overrides Reader]
  Skips characters.
Fields
Hide/Show inherited fields
protected char buf
The character buffer.
protected int count
  The index of the end of this buffer.
protected Object lock [Inherited From Reader]
  The object used to synchronize operations on this stream.
protected int markedPos
The position of mark in buffer.
protected int pos
The current buffer position.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar