org.entityfs.support.io
Class ScatteringByteChannelAdapter
java.lang.Object
org.entityfs.support.lang.ObjectProxySupport<T>
org.entityfs.support.io.ChannelProxy<T>
org.entityfs.support.io.ReadableByteChannelProxy<ReadableByteChannel>
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
ScatteringByteChannelAdapter
public ScatteringByteChannelAdapter(ReadableByteChannel proxied)
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