org.entityfs.support.io
Class ChannelProxy<T extends Channel>
java.lang.Object
org.entityfs.support.lang.ObjectProxySupport<T>
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
ChannelProxy
protected ChannelProxy(T proxied)
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