org.entityfs.support.io
Class ChannelProxy<T extends Channel>

java.lang.Object
  extended by org.entityfs.support.lang.ObjectProxySupport<T>
      extended by org.entityfs.support.io.ChannelProxy<T>
All Implemented Interfaces:
Closeable, Channel
Direct Known Subclasses:
ReadableByteChannelProxy, WritableByteChannelProxy

public abstract class ChannelProxy<T extends Channel>
extends ObjectProxySupport<T>
implements Channel

This is a proxy for java.nio.Channel objects. The methods in this class delegates calls to the proxied object. Subclasses override methods they want to change the behavior of.

Since:
1.0
Author:
Karl Gustafsson
In_jar:
entityfs-core

Constructor Summary
protected ChannelProxy(T proxied)
           
 
Method Summary
 void close()
           
 boolean isOpen()
           
 
Methods inherited from class org.entityfs.support.lang.ObjectProxySupport
equals, getProxied, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelProxy

protected ChannelProxy(T proxied)
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in interface Channel
Throws:
IOException

isOpen

public boolean isOpen()
Specified by:
isOpen in interface Channel