|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.io.WrapperChannel<java.nio.channels.SocketChannel>
org.restlet.engine.io.WrapperSocketChannel
org.restlet.engine.io.ReadableSocketChannel
public class ReadableSocketChannel
Readable byte channel based on a source socket channel that must only be partially read.
Constructor Summary | |
---|---|
ReadableSocketChannel(java.nio.channels.SocketChannel wrappedChannel,
SelectionRegistration registration)
Constructor. |
Method Summary | |
---|---|
int |
read(java.nio.ByteBuffer dst)
Reads the available byte form the wrapped socket channel. |
Methods inherited from class org.restlet.engine.io.WrapperSocketChannel |
---|
getRegistration, isBlocking |
Methods inherited from class org.restlet.engine.io.WrapperChannel |
---|
close, getWrappedChannel, isOpen |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.restlet.engine.io.SelectionChannel |
---|
getRegistration |
Methods inherited from interface org.restlet.engine.io.BlockableChannel |
---|
isBlocking |
Methods inherited from interface java.nio.channels.Channel |
---|
close, isOpen |
Constructor Detail |
---|
public ReadableSocketChannel(java.nio.channels.SocketChannel wrappedChannel, SelectionRegistration registration)
wrappedChannel
- The source channel.registration
- The NIO registration.Method Detail |
---|
public int read(java.nio.ByteBuffer dst) throws java.io.IOException
read
in interface java.nio.channels.ReadableByteChannel
dst
- The destination byte buffer.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |