Class 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 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.IOException
        Deprecated.
        Writes the given bytes to the wrapped socket channel.
        Specified by:
        write in interface java.nio.channels.WritableByteChannel
        Parameters:
        src - The source byte buffer.
        Returns:
        The number of bytes written.
        Throws:
        java.io.IOException