org.restlet.engine.io
Class WrapperChannel<T extends java.nio.channels.Channel>

java.lang.Object
  extended by org.restlet.engine.io.WrapperChannel<T>
All Implemented Interfaces:
java.io.Closeable, java.nio.channels.Channel
Direct Known Subclasses:
ReadableChunkingChannel, ReadableSizedChannel, WrapperSelectionChannel, WrapperSocketChannel

public class WrapperChannel<T extends java.nio.channels.Channel>
extends java.lang.Object
implements java.nio.channels.Channel

Wrapper channel.

Author:
Jerome Louvel

Constructor Summary
WrapperChannel(T wrappedChannel)
          Constructor.
 
Method Summary
 void close()
          Delegates to the wrapped channel.
protected  T getWrappedChannel()
          Returns the wrapped channel.
 boolean isOpen()
          Delegates to the wrapped channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperChannel

public WrapperChannel(T wrappedChannel)
Constructor.

Parameters:
wrappedChannel - The wrapped channel.
Method Detail

close

public void close()
           throws java.io.IOException
Delegates to the wrapped channel.

Specified by:
close in interface java.io.Closeable
Specified by:
close in interface java.nio.channels.Channel
Throws:
java.io.IOException

getWrappedChannel

protected T getWrappedChannel()
Returns the wrapped channel.

Returns:
The wrapped channel.

isOpen

public boolean isOpen()
Delegates to the wrapped channel.

Specified by:
isOpen in interface java.nio.channels.Channel


Copyright © 2005-2013 Restlet S.A.S..