public class StringInputStream extends InputStream
Modifier and Type | Field and Description |
---|---|
protected String |
text
The text to stream.
|
Constructor and Description |
---|
StringInputStream()
Constructor.
|
StringInputStream(String text)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
String |
getText()
Returns the text to stream.
|
int |
read()
Reads the next character in the source text.
|
int |
read(char[] cbuf) |
int |
read(char[] cbuf,
int off,
int len) |
mark, markSupported, read, read, reset, skip
protected String text
public StringInputStream()
public StringInputStream(String text)
text
- public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public String getText()
public int read() throws IOException
read
in class InputStream
IOException
public int read(char[] cbuf) throws IOException
cbuf
- IOException
public int read(char[] cbuf, int off, int len) throws IOException
cbuf
- off
- len
- IOException
Copyright © 2005-2015 Restlet.