Class Decoder
- java.lang.Object
-
- com.aayushatharva.brotli4j.decoder.Decoder
-
- Direct Known Subclasses:
BrotliDecoderChannel
public class Decoder extends java.lang.ObjectBase 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 DirectDecompressdecompress(byte[] data)Decodes the given data buffer.voidenableEagerOutput()
-
-
-
Constructor Detail
-
Decoder
public Decoder(java.nio.channels.ReadableByteChannel source, int inputBufferSize) throws java.io.IOExceptionCreates 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:
DirectDecompressinstance- Throws:
java.io.IOException- If an error occurs during decoding
-
enableEagerOutput
public void enableEagerOutput()
-
-