public class StringReader extends Reader
| Constructor and Description | 
|---|
| StringReader(String str) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Closes the stream and releases any system resources associated with it. | 
| int | read()Reads a single character. | 
| int | read(char[] cbuf,
    int off,
    int len)Reads characters into a portion of an array. | 
| String | readLine() | 
| boolean | ready()Tells whether this stream is ready to be read. | 
public StringReader(String str)
public void close()
Readerpublic int read()
ReaderSubclasses that intend to support efficient single-character input should override this method.
public int read(char[] cbuf,
                int off,
                int len)
Readerpublic String readLine()
public boolean ready()
Reader