Class FilterWritableByteChannel<C extends WritableByteChannel>

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

A WritableByteChannel filter which delegates to the wrapped WritableByteChannel.

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

You construct s simple instance with the Channel constructor and more advanced instances through the FilterWritableByteChannel.Builder.

Since:
2.22.0
See Also: