public class StringReader extends Reader
| Constructor and Description |
|---|
StringReader(String str) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the stream.
|
int |
read()
Read a single character.
|
int |
read(char[] cbuf,
int off,
int len)
Read characters into a portion of an array.
|
String |
readLine() |
boolean |
ready()
Tell whether this stream is ready to be read.
|
public StringReader(String str)
public int read()
Readerpublic int read(char[] cbuf,
int off,
int len)
Readerpublic void close()
Readerclose in interface AutoCloseableclose in class Readerpublic String readLine()