Class BrotliDecoderChannel

java.lang.Object
com.aayushatharva.brotli4j.decoder.Decoder
com.aayushatharva.brotli4j.decoder.BrotliDecoderChannel
All Implemented Interfaces:
Closeable, AutoCloseable, Channel, ReadableByteChannel

public class BrotliDecoderChannel extends Decoder implements ReadableByteChannel
ReadableByteChannel that wraps native brotli decoder.
  • Constructor Details

    • BrotliDecoderChannel

      public BrotliDecoderChannel(ReadableByteChannel source) throws IOException
      Creates a BrotliDecoderChannel.
      Parameters:
      source - underlying source
      Throws:
      IOException - If any failure during initialization
    • BrotliDecoderChannel

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

      public BrotliDecoderChannel(ReadableByteChannel source, int bufferSize, int maxOutputChunkSize) throws IOException
      Creates a BrotliDecoderChannel 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
  • Method Details