Class Decoders
- java.lang.Object
-
- com.aayushatharva.brotli4j.decoder.Decoders
-
public final class Decoders extends java.lang.ObjectMultiple decoding methods usingByteBuffer.
-
-
Constructor Summary
Constructors Constructor Description Decoders()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DirectDecompressdecompress(java.nio.ByteBuffer compressed, java.nio.ByteBuffer decompressed)Decodes the given data buffer.
-
-
-
Method Detail
-
decompress
public static DirectDecompress decompress(java.nio.ByteBuffer compressed, java.nio.ByteBuffer decompressed) throws java.io.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:
java.io.IOException- Thrown in case of error during decoding
-
-