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