org.entityfs.support.io
Class WritableByteChannelProxy<T extends WritableByteChannel>

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

public abstract class WritableByteChannelProxy<T extends WritableByteChannel>
extends ChannelProxy<T>
implements WritableByteChannel

This is a proxy for WritableByteChannel objects. The methods in this class delegate all calls to the proxied object. Inheriting classes may override all methods they want to change the behavior of.

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
protected WritableByteChannelProxy(T proxied)
           
 
Method Summary
 int write(ByteBuffer src)
           
 
Methods inherited from class org.entityfs.support.io.ChannelProxy
close, 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
 
Methods inherited from interface java.nio.channels.Channel
close, isOpen
 

Constructor Detail

WritableByteChannelProxy

protected WritableByteChannelProxy(T proxied)
Method Detail

write

public int write(ByteBuffer src)
          throws IOException
Specified by:
write in interface WritableByteChannel
Throws:
IOException