Class ByteArraySeekableByteChannel.Builder

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

Builds for ByteArraySeekableByteChannel.

Building a read-only channel from an existing byte array is supported with:

try (ByteArraySeekableByteChannel channel = ByteArraySeekableByteChannel.builder()
              .setByteArray(...)
              .setOpenOptions(StandardOpenOption.READ)
              .get()) {
              // read from channel
}
Since:
2.22.0