Class BufferedFileChannelInputStream.Builder

All Implemented Interfaces:
IOSupplier<BufferedFileChannelInputStream>
Enclosing class:
BufferedFileChannelInputStream

Builds a new BufferedFileChannelInputStream.

Using File IO:

BufferedFileChannelInputStream s = BufferedFileChannelInputStream.builder()
  .setFile(file)
  .setBufferSize(4096)
  .get();

Using NIO Path:

BufferedFileChannelInputStream s = BufferedFileChannelInputStream.builder()
  .setPath(path)
  .setBufferSize(4096)
  .get();
Since:
2.12.0
See Also: