Class FilterChannel<C extends Channel>

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

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

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

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

Since:
2.22.0
See Also: