org.restlet.engine.io
Class WrapperSocketChannel

java.lang.Object
  extended by org.restlet.engine.io.WrapperChannel<SocketChannel>
      extended by org.restlet.engine.io.WrapperSocketChannel
All Implemented Interfaces:
Closeable, Channel, BlockableChannel, SelectionChannel
Direct Known Subclasses:
ReadableSocketChannel, WritableSocketChannel

public class WrapperSocketChannel
extends WrapperChannel<SocketChannel>
implements SelectionChannel

Readable byte channel based on a source socket channel that must only be partially read.


Constructor Summary
WrapperSocketChannel(SocketChannel wrappedChannel, SelectionRegistration registration)
          Constructor.
 
Method Summary
 SelectionRegistration getRegistration()
          Returns the NIO registration.
 boolean isBlocking()
          Indicates if the channel is blocking.
 
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 java.nio.channels.Channel
close, isOpen
 

Constructor Detail

WrapperSocketChannel

public WrapperSocketChannel(SocketChannel wrappedChannel,
                            SelectionRegistration registration)
Constructor.

Parameters:
wrappedChannel - The source channel.
registration - The NIO registration.
Method Detail

getRegistration

public SelectionRegistration getRegistration()
Returns the NIO registration.

Specified by:
getRegistration in interface SelectionChannel
Returns:
The NIO registration.

isBlocking

public boolean isBlocking()
Indicates if the channel is blocking.

Specified by:
isBlocking in interface BlockableChannel
Returns:
True if the channel is blocking.


Copyright © 2005-2013 Restlet.