| java.lang.Object java.io.Reader javolution.io.CharSequenceReader
CharSequenceReader | final public class CharSequenceReader extends Reader implements Reusable(Code) | | This class allows any CharSequence to be used as
a reader.
author: Jean-Marie Dautelle version: 3.8, May 8, 2004 |
Constructor Summary | |
public | CharSequenceReader() Creates a new character sequence reader for which the character
sequence input is not set. |
Method Summary | |
public void | close() Closes and
CharSequenceReader.reset resets this reader for reuse. | public int | read() Reads a single character. | public int | read(char cbuf, int off, int len) Reads characters into a portion of an array. | public void | read(Appendable dest) Reads characters into the specified appendable. | public boolean | ready() Indicates if this stream is ready to be read. | public void | reset() | public CharSequenceReader | setInput(CharSequence charSequence) Sets the character sequence to use for reading.
Parameters: charSequence - the character sequence to be read. |
CharSequenceReader | public CharSequenceReader()(Code) | | Creates a new character sequence reader for which the character
sequence input is not set.
See Also: CharSequenceReader.setInput |
read | public int read() throws IOException(Code) | | Reads a single character. This method does not block, -1
is returned if the end of the character sequence input has been reached.
the 31-bits Unicode of the character read, or -1 if there is no more remaining bytes to be read. throws: IOException - if an I/O error occurs (e.g. incomplete character sequence being read). |
read | public int read(char cbuf, int off, int len) throws IOException(Code) | | Reads characters into a portion of an array. This method does not
block.
Parameters: cbuf - the destination buffer. Parameters: off - the offset at which to start storing characters. Parameters: len - the maximum number of characters to read the number of characters read, or -1 if there is no morecharacter to be read. throws: IOException - if an I/O error occurs. |
read | public void read(Appendable dest) throws IOException(Code) | | Reads characters into the specified appendable. This method does not
block.
Parameters: dest - the destination buffer. throws: IOException - if an I/O error occurs. |
ready | public boolean ready() throws IOException(Code) | | Indicates if this stream is ready to be read.
true if this reader has remaining characters to read; false otherwise. throws: IOException - if an I/O error occurs. |
reset | public void reset()(Code) | | |
|
|