|
||||||||||
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.WritableSocketChannel
public class WritableSocketChannel
Readable byte channel based on a source socket channel that must only be partially read.
Constructor Summary | |
---|---|
WritableSocketChannel(java.nio.channels.SocketChannel wrappedChannel,
SelectionRegistration registration)
Constructor. |
Method Summary | |
---|---|
int |
write(java.nio.ByteBuffer src)
Writes the given bytes to 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 WritableSocketChannel(java.nio.channels.SocketChannel wrappedChannel, SelectionRegistration registration)
wrappedChannel
- The source channel.registration
- The NIO registration.Method Detail |
---|
public int write(java.nio.ByteBuffer src) throws java.io.IOException
write
in interface java.nio.channels.WritableByteChannel
src
- The source byte buffer.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |