Class FilterReadableByteChannel<C extends ReadableByteChannel>

java.lang.Object
org.apache.commons.io.channels.FilterChannel<C>
org.apache.commons.io.channels.FilterReadableByteChannel<C>
Type Parameters:
C - the ReadableByteChannel type.
All Implemented Interfaces:
Closeable, AutoCloseable, Channel, ReadableByteChannel

A ReadableByteChannel filter which delegates to the wrapped ReadableByteChannel.

A FilterReadableByteChannel wraps some other channel, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality. The class FilterReadableByteChannel itself simply overrides methods of ReadableByteChannel with versions that pass all requests to the wrapped channel. Subclasses of FilterReadableByteChannel may of course override any methods declared or inherited by FilterReadableByteChannel, and may also provide additional fields and methods.

You construct s simple instance with the channel constructor and more advanced instances through the FilterReadableByteChannel.Builder.

Since:
2.22.0
See Also: