Class Decoders
java.lang.Object
com.aayushatharva.brotli4j.decoder.Decoders
Multiple decoding methods using
ByteBuffer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DirectDecompressdecompress(ByteBuffer compressed, ByteBuffer decompressed) Decodes the given data buffer.
-
Constructor Details
-
Decoders
public Decoders()
-
-
Method Details
-
decompress
public static DirectDecompress decompress(ByteBuffer compressed, ByteBuffer decompressed) throws IOException Decodes the given data buffer.- Parameters:
compressed-ByteBuffersource - will be read in full (position == limit after this call).decompressed-ByteBufferdestination - compressed data will be filled in beginning at position, up to remaining bytes; position is updated- Returns:
DirectDecompressinstance - upon return, only the status code is still valid- Throws:
IOException- Thrown in case of error during decoding
-