org.entityfs.support.io
Class ReadableByteChannelProxy<T extends ReadableByteChannel>

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>
All Implemented Interfaces:
Closeable, Channel, ReadableByteChannel
Direct Known Subclasses:
LockAwareReadableByteChannel, ScatteringByteChannelAdapter, ScatteringByteChannelProxy

public abstract class ReadableByteChannelProxy<T extends ReadableByteChannel>
extends ChannelProxy<T>
implements ReadableByteChannel

This is a proxy for ReadableByteChannel objects. The methods in this class delegate all calls to the proxied object. Inheriting classes may override all methods they want to change the behavior of.

Since:
1.0
Author:
Karl Gustafsson
In_jar:
entityfs-core

Constructor Summary
protected ReadableByteChannelProxy(T proxied)
           
 
Method Summary
 int read(ByteBuffer dst)
           
 
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.Channel
close, isOpen
 

Constructor Detail

ReadableByteChannelProxy

protected ReadableByteChannelProxy(T proxied)
Method Detail

read

public int read(ByteBuffer dst)
         throws IOException
Specified by:
read in interface ReadableByteChannel
Throws:
IOException