|
Restlet Framework 2.2.1 Android |
|||||||||
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(java.io.InputStream inputStream)
Constructor. |
Method Summary | |
---|---|
void |
close()
Closes the underlying input stream. |
protected java.io.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(java.nio.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(java.io.InputStream inputStream) throws java.io.IOException
inputStream
-
java.io.IOException
Method Detail |
---|
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.nio.channels.Channel
java.io.IOException
protected java.io.InputStream getInputStream()
public boolean isBlocking()
isBlocking
in interface BlockableChannel
public boolean isOpen()
isOpen
in interface java.nio.channels.Channel
public int read(java.nio.ByteBuffer target) throws java.io.IOException
read
in interface java.nio.channels.ReadableByteChannel
target
- The target byte buffer.
java.io.IOException
|
Restlet Framework 2.2.1 Android |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |