|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.restlet.client.engine.io.StringInputStream
public class StringInputStream
Input stream in which the bytes read are supplied by the contents of a string based on the default character set.
Field Summary | |
---|---|
protected String |
text
The text to stream. |
Constructor Summary | |
---|---|
StringInputStream()
Constructor. |
|
StringInputStream(String text)
Constructor. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.io.InputStream |
---|
mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String text
Constructor Detail |
---|
public StringInputStream()
public StringInputStream(String text)
text
- Method Detail |
---|
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |