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()
Reader
public int read(char[] cbuf, int off, int len)
Reader
public void close()
Reader
close
in interface AutoCloseable
close
in class Reader
public String readLine()