Class BrotliInputStream

    • Field Detail

      • DEFAULT_INTERNAL_BUFFER_SIZE

        public static final int DEFAULT_INTERNAL_BUFFER_SIZE
        See Also:
        Constant Field Values
    • Constructor Detail

      • BrotliInputStream

        public BrotliInputStream​(InputStream source)
                          throws IOException
        Creates a InputStream wrapper that decompresses brotli data.

        For byte-by-byte reading (read()) internal buffer with DEFAULT_INTERNAL_BUFFER_SIZE size is allocated and used.

        Will block the thread until first kilobyte of data of source is available.

        Parameters:
        source - underlying data source
        Throws:
        IOException - in case of corrupted data or source stream problems
      • BrotliInputStream

        public BrotliInputStream​(InputStream source,
                                 int byteReadBufferSize)
                          throws IOException
        Creates a InputStream wrapper that decompresses brotli data.

        For byte-by-byte reading (read()) internal buffer of specified size is allocated and used.

        Will block the thread until first kilobyte of data of source is available.

        Parameters:
        source - compressed data source
        byteReadBufferSize - size of internal buffer used in case of byte-by-byte reading
        Throws:
        IOException - in case of corrupted data or source stream problems