org.restlet.engine.io
Class NbChannelInputStream
java.lang.Object
java.io.InputStream
org.restlet.engine.io.NbChannelInputStream
- All Implemented Interfaces:
- Closeable
public class NbChannelInputStream
- extends InputStream
Input stream connected to a non-blocking readable channel.
- Author:
- Jerome Louvel
Method Summary |
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NbChannelInputStream
public NbChannelInputStream(ReadableByteChannel channel)
- Constructor.
- Parameters:
channel
- The channel to read from.
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read
in class InputStream
- Throws:
IOException
Copyright © 2005-2011 Noelios Technologies.