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

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

public class WrapperChannel<T extends Channel>
extends Object
implements 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 IOException
Delegates to the wrapped channel.

Specified by:
close in interface Closeable
Specified by:
close in interface Channel
Throws:
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 Channel


Copyright © 2005-2013 Restlet.