Class BrotliInputStream

java.lang.Object
java.io.InputStream
com.aayushatharva.brotli4j.decoder.BrotliInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class BrotliInputStream extends InputStream
InputStream that wraps native brotli decoder.
  • Constructor Details

    • BrotliInputStream

      public BrotliInputStream(InputStream source, int bufferSize) throws IOException
      Creates a BrotliInputStream
      Parameters:
      source - underlying source
      bufferSize - intermediate buffer size
      Throws:
      IOException - If any failure during initialization
    • BrotliInputStream

      public BrotliInputStream(InputStream source, int bufferSize, int maxOutputChunkSize) throws IOException
      Creates a BrotliInputStream with a per-pull output cap.
      Parameters:
      source - underlying source
      bufferSize - intermediate buffer size
      maxOutputChunkSize - per-pull output cap in bytes; 0 for no cap
      Throws:
      IOException - If any failure during initialization
    • BrotliInputStream

      public BrotliInputStream(InputStream source) throws IOException
      Creates a BrotliInputStream
      Parameters:
      source - underlying source
      Throws:
      IOException - If any failure during initialization
  • Method Details