org.entityfs.support.io
Class ScatteringByteChannelProxy<T extends ScatteringByteChannel>

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.ReadableByteChannelProxy<T>
              extended by org.entityfs.support.io.ScatteringByteChannelProxy<T>
All Implemented Interfaces:
Closeable, Channel, ReadableByteChannel, ScatteringByteChannel

public abstract class ScatteringByteChannelProxy<T extends ScatteringByteChannel>
extends ReadableByteChannelProxy<T>
implements ScatteringByteChannel

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
In_jar:
entityfs-core

Constructor Summary
protected ScatteringByteChannelProxy(T proxied)
           
 
Method Summary
 long read(ByteBuffer[] dsts)
           
 long read(ByteBuffer[] dsts, int off, int length)
           
 
Methods inherited from class org.entityfs.support.io.ReadableByteChannelProxy
read
 
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.ReadableByteChannel
read
 
Methods inherited from interface java.nio.channels.Channel
close, isOpen
 

Constructor Detail

ScatteringByteChannelProxy

protected ScatteringByteChannelProxy(T proxied)
Method Detail

read

public long read(ByteBuffer[] dsts)
          throws IOException
Specified by:
read in interface ScatteringByteChannel
Throws:
IOException

read

public long read(ByteBuffer[] dsts,
                 int off,
                 int length)
          throws IOException
Specified by:
read in interface ScatteringByteChannel
Throws:
IOException