java.io.StringReader (JDK 1.1)
This class is a character input stream that uses a String object as the source of the characters it returns. When you create a StringReader, you must specify the String that it is to read from.
StringReader defines the normal Reader methods, and supports mark() and reset(). If reset() is called before mark() has been called, the stream is reset to the beginning of the specified string.
StringReader is a character stream analog to StringBufferInputStream, which is deprecated in Java 1.1. StringReader is also similar to CharArrayReader.
public classStringReaderextends Reader { //Public ConstructorpublicStringReader(Strings); //Public Instance Methodspublic voidclose(); //Defines Readerpublic voidmark(intreadAheadLimit) throws IOException; //Overrides Readerpublic booleanmarkSupported(); //Overrides Readerpublic intread() throws IOException; //Overrides Readerpublic intread(char[]cbuf, intoff, intlen) throws IOException; //Defines Readerpublic booleanready(); //Overrides Readerpublic voidreset() throws IOException; //Overrides Readerpublic longskip(longns) throws IOException; //Overrides Reader}
Hierarchy:
Object->Reader->StringReader