org.entityfs.support.io
Class ScatteringByteChannelAdapter

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

public class ScatteringByteChannelAdapter
extends ReadableByteChannelProxy<ReadableByteChannel>
implements ScatteringByteChannel

This is an adapter for making a ScatteringByteChannel out of a plain ReadableByteChannel.

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
ScatteringByteChannelAdapter(ReadableByteChannel 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

ScatteringByteChannelAdapter

public ScatteringByteChannelAdapter(ReadableByteChannel 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