|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.io.InputStreamChannel
public class InputStreamChannel
Readable byte channel wrapping an input stream.
Constructor Summary | |
---|---|
InputStreamChannel(InputStream inputStream)
Constructor. |
Method Summary | |
---|---|
void |
close()
Closes the underlying input stream. |
protected InputStream |
getInputStream()
Returns the underlying input stream. |
boolean |
isBlocking()
True if the underlying input stream is able to indicate available bytes upfront. |
boolean |
isOpen()
Indicates if the channel and its underlying stream are open. |
int |
read(ByteBuffer target)
Reads bytes from the underlying stream to the target buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputStreamChannel(InputStream inputStream) throws IOException
inputStream
-
IOException
Method Detail |
---|
public void close() throws IOException
close
in interface Closeable
close
in interface Channel
IOException
protected InputStream getInputStream()
public boolean isBlocking()
isBlocking
in interface BlockableChannel
public boolean isOpen()
isOpen
in interface Channel
public int read(ByteBuffer target) throws IOException
read
in interface ReadableByteChannel
target
- The target byte buffer.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |