org.entityfs.support.io
Class GatheringByteChannelAdapter
java.lang.Object
org.entityfs.support.lang.ObjectProxySupport<T>
org.entityfs.support.io.ChannelProxy<T>
org.entityfs.support.io.WritableByteChannelProxy<WritableByteChannel>
org.entityfs.support.io.GatheringByteChannelAdapter
- All Implemented Interfaces:
- Closeable, Channel, GatheringByteChannel, WritableByteChannel
public class GatheringByteChannelAdapter
- extends WritableByteChannelProxy<WritableByteChannel>
- implements GatheringByteChannel
This is an adapter for making a GatheringByteChannel
out of a plain
WritableByteChannel
.
- Since:
- 1.0
- Author:
- Karl Gustafsson
GatheringByteChannelAdapter
public GatheringByteChannelAdapter(WritableByteChannel adapted)
write
public long write(ByteBuffer[] srcs)
throws IOException
- Specified by:
write
in interface GatheringByteChannel
- Throws:
IOException
write
public long write(ByteBuffer[] srcs,
int off,
int length)
throws IOException
- Specified by:
write
in interface GatheringByteChannel
- Throws:
IOException