|
||||||||||
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 java.lang.String |
text
The text to stream. |
Constructor Summary | |
---|---|
StringInputStream()
Constructor. |
|
StringInputStream(java.lang.String text)
Constructor. |
Method Summary | |
---|---|
int |
available()
|
void |
close()
|
java.lang.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 java.lang.String text
Constructor Detail |
---|
public StringInputStream()
public StringInputStream(java.lang.String text)
text
- Method Detail |
---|
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
public java.lang.String getText()
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(char[] cbuf) throws java.io.IOException
cbuf
-
java.io.IOException
public int read(char[] cbuf, int off, int len) throws java.io.IOException
cbuf
- off
- len
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |