Class WritableSocketChannel
- java.lang.Object
-
- org.restlet.ext.nio.internal.channel.WrapperChannel<java.nio.channels.SocketChannel>
-
- org.restlet.ext.nio.internal.channel.WrapperSocketChannel
-
- org.restlet.ext.nio.internal.channel.WritableSocketChannel
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.nio.channels.Channel,java.nio.channels.WritableByteChannel,BlockableChannel,SelectionChannel,WritableSelectionChannel
@Deprecated public class WritableSocketChannel extends WrapperSocketChannel implements WritableSelectionChannel
Deprecated.Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.Readable byte channel based on a source socket channel that must only be partially read.
-
-
Constructor Summary
Constructors Constructor Description WritableSocketChannel(java.nio.channels.SocketChannel wrappedChannel, SelectionRegistration registration)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intwrite(java.nio.ByteBuffer src)Deprecated.Writes the given bytes to the wrapped socket channel.-
Methods inherited from class org.restlet.ext.nio.internal.channel.WrapperSocketChannel
getRegistration, isBlocking
-
Methods inherited from class org.restlet.ext.nio.internal.channel.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.BlockableChannel
isBlocking
-
Methods inherited from interface org.restlet.engine.io.SelectionChannel
getRegistration
-
-
-
-
Constructor Detail
-
WritableSocketChannel
public WritableSocketChannel(java.nio.channels.SocketChannel wrappedChannel, SelectionRegistration registration)Deprecated.Constructor.- Parameters:
wrappedChannel- The source channel.registration- The NIO registration.
-
-
Method Detail
-
write
public int write(java.nio.ByteBuffer src) throws java.io.IOExceptionDeprecated.Writes the given bytes to the wrapped socket channel.- Specified by:
writein interfacejava.nio.channels.WritableByteChannel- Parameters:
src- The source byte buffer.- Returns:
- The number of bytes written.
- Throws:
java.io.IOException
-
-