org.entityfs.support.io
Class GatheringByteChannelProxy<T extends GatheringByteChannel>

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>
              extended by org.entityfs.support.io.GatheringByteChannelProxy<T>
All Implemented Interfaces:
Closeable, Channel, GatheringByteChannel, WritableByteChannel

public abstract class GatheringByteChannelProxy<T extends GatheringByteChannel>
extends WritableByteChannelProxy<T>
implements GatheringByteChannel

This is a proxy class for GatheringByteChannel implementations. The methods in this class delegates to the proxied channel. Inheriting classes may override the methods they want to change the behavior of.

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
protected GatheringByteChannelProxy(T proxied)
           
 
Method Summary
 long write(ByteBuffer[] srcs)
           
 long write(ByteBuffer[] srcs, int offset, int length)
           
 
Methods inherited from class org.entityfs.support.io.WritableByteChannelProxy
write
 
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.WritableByteChannel
write
 
Methods inherited from interface java.nio.channels.Channel
close, isOpen
 

Constructor Detail

GatheringByteChannelProxy

protected GatheringByteChannelProxy(T proxied)
Method Detail

write

public long write(ByteBuffer[] srcs)
           throws IOException
Specified by:
write in interface GatheringByteChannel
Throws:
IOException

write

public long write(ByteBuffer[] srcs,
                  int offset,
                  int length)
           throws IOException
Specified by:
write in interface GatheringByteChannel
Throws:
IOException