Class FilterByteChannel<C extends ByteChannel>

java.lang.Object
org.apache.commons.io.channels.FilterChannel<C>
org.apache.commons.io.channels.FilterByteChannel<C>
Type Parameters:
C - the ByteChannel type.
All Implemented Interfaces:
Closeable, AutoCloseable, ByteChannel, Channel, ReadableByteChannel, WritableByteChannel
Direct Known Subclasses:
FilterSeekableByteChannel

public class FilterByteChannel<C extends ByteChannel> extends FilterChannel<C> implements ByteChannel
A ByteChannel filter which delegates to the wrapped ByteChannel.

A FilterByteChannel 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 FilterByteChannel itself simply overrides methods of ByteChannel with versions that pass all requests to the wrapped channel. Subclasses of FilterByteChannel may of course override any methods declared or inherited by FilterByteChannel, and may also provide additional fields and methods.

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

Since:
2.22.0
See Also: