Read-only: Compress4J can extract this format but cannot create it.

Select it with Compression.brotli(). Decompressor never detects Brotli, so pass the Compression explicitly. It has no options.

Reading needs org.brotli:dec at runtime; see Additional Formats. Without it, building the Decompressor fails with a MissingArchiveDependencyException.

Decompressor enforces the default limits; a stream that expands past a ratio of 100 after the first MiB throws LimitExceededException.

Example Usage

Brotli Decompression
try (Decompressor decompressor = Decompressor.builder(Path.of("example.br"), Compression.brotli())
        .build()) {
    decompressor.write(Path.of("path/to/file.txt"));
}