Class ReadableSocketChannel
- 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.ReadableSocketChannel
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.nio.channels.Channel,java.nio.channels.ReadableByteChannel,BlockableChannel,ReadableSelectionChannel,SelectionChannel
@Deprecated public class ReadableSocketChannel extends WrapperSocketChannel implements ReadableSelectionChannel
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 ReadableSocketChannel(java.nio.channels.SocketChannel wrappedChannel, SelectionRegistration registration)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intread(java.nio.ByteBuffer dst)Deprecated.Reads the available byte form 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
-
ReadableSocketChannel
public ReadableSocketChannel(java.nio.channels.SocketChannel wrappedChannel, SelectionRegistration registration)Deprecated.Constructor.- Parameters:
wrappedChannel- The source channel.registration- The NIO registration.
-
-
Method Detail
-
read
public int read(java.nio.ByteBuffer dst) throws java.io.IOExceptionDeprecated.Reads the available byte form the wrapped socket channel.- Specified by:
readin interfacejava.nio.channels.ReadableByteChannel- Parameters:
dst- The destination byte buffer.- Returns:
- The number of bytes read.
- Throws:
java.io.IOException
-
-