org.entityfs.support.io
Class GatheringByteChannelAdapter

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<WritableByteChannel>
              extended by 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

Constructor Summary
GatheringByteChannelAdapter(WritableByteChannel adapted)
           
 
Method Summary
 long write(ByteBuffer[] srcs)
           
 long write(ByteBuffer[] srcs, int off, 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

GatheringByteChannelAdapter

public GatheringByteChannelAdapter(WritableByteChannel adapted)
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 off,
                  int length)
           throws IOException
Specified by:
write in interface GatheringByteChannel
Throws:
IOException