|
Restlet Framework 2.2.1 OSGi Environments |
|||||||||
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(Reader reader)
Constructor. |
|
ReaderInputStream(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(Reader reader) throws IOException
CharacterSet.ISO_8859_1
character set by
default.
reader
- The reader to wrap as an input stream.
IOException
public ReaderInputStream(Reader reader, CharacterSet characterSet) throws IOException
reader
- The reader to wrap as an input stream.characterSet
- The character set to use for encoding.
IOException
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 int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
|
Restlet Framework 2.2.1 OSGi Environments |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |