Class Decoder
java.lang.Object
com.aayushatharva.brotli4j.decoder.Decoder
- Direct Known Subclasses:
BrotliDecoderChannel
Base class for InputStream / Channel implementations.
-
Constructor Summary
ConstructorsConstructorDescriptionDecoder
(ReadableByteChannel source, int inputBufferSize) Creates a Decoder wrapper. -
Method Summary
Modifier and TypeMethodDescriptionstatic DirectDecompress
decompress
(byte[] data) Decodes the given data buffer.void
-
Constructor Details
-
Decoder
Creates a Decoder wrapper.- Parameters:
source
- underlying sourceinputBufferSize
- read buffer size- Throws:
IOException
- If any failure during initialization
-
-
Method Details
-
decompress
Decodes the given data buffer.- Parameters:
data
- byte array of data to be decoded- Returns:
DirectDecompress
instance- Throws:
IOException
- If an error occurs during decoding
-
enableEagerOutput
public void enableEagerOutput()
-