The Java.io.StringReader class is a character stream whose source is a string.
Following is the declaration for Java.io.StringReader class:
public class StringReader extends Reader
Following are the fields for Java.io.StringReader class:
protected Object lock -- This is the object used to synchronize operations on this stream.
|S.N.||Constructor & Description|
This creates a new string reader.
|S.N.||Method & Description|
This method closes the stream and releases any system resources associated with it.
This method marks the present position in the stream.
This method tells whether this stream supports the mark() operation, which it does.
This method reads a single character.
This method reads characters into a portion of an array.
This method tells whether this stream is ready to be read.
This method resets the stream to the most recent mark, or to the beginning of the string if it has never been marked.
This method skips the specified number of characters in the stream.
This class inherits methods from the following classes: