|
Restlet Framework 2.2.2 Android |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.restlet.engine.io.ReaderInputStream
public class ReaderInputStream
Input stream based on a reader. The implementation relies on the NIO
CharsetEncoder
class.
Constructor Summary | |
---|---|
ReaderInputStream(java.io.Reader reader)
Constructor. |
|
ReaderInputStream(java.io.Reader reader,
CharacterSet characterSet)
Constructor. |
Method Summary | |
---|---|
int |
available()
|
void |
close()
Closes the wrapped reader. |
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
Methods inherited from class java.io.InputStream |
---|
mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReaderInputStream(java.io.Reader reader) throws java.io.IOException
CharacterSet.ISO_8859_1
character set by
default.
reader
- The reader to wrap as an input stream.
java.io.IOException
public ReaderInputStream(java.io.Reader reader, CharacterSet characterSet) throws java.io.IOException
reader
- The reader to wrap as an input stream.characterSet
- The character set to use for encoding.
java.io.IOException
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 int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
|
Restlet Framework 2.2.2 Android |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |