Class FilterFileChannel

All Implemented Interfaces:
Closeable, AutoCloseable, ByteChannel, Channel, GatheringByteChannel, InterruptibleChannel, ReadableByteChannel, ScatteringByteChannel, SeekableByteChannel, WritableByteChannel

public class FilterFileChannel extends FileChannel
Filters a FileChannel.

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

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

Since:
2.22.0