Class DirectDecompress
- java.lang.Object
-
- com.aayushatharva.brotli4j.decoder.DirectDecompress
-
public final class DirectDecompress extends java.lang.Object
Directly decompresses data usingDecoder.decompress(byte[])
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DirectDecompress
decompress(byte[] compressedData)
Initiate direct decompression of databyte[]
getDecompressedData()
Get decompressed data.io.netty.buffer.ByteBuf
getDecompressedDataByteBuf()
Get decompressed data.DecoderJNI.Status
getResultStatus()
Get the result of decompression.
-
-
-
Method Detail
-
decompress
public static DirectDecompress decompress(byte[] compressedData) throws java.io.IOException
Initiate direct decompression of data- Parameters:
compressedData
- Compressed data as Byte Array- Returns:
DirectDecompress
Instance- Throws:
java.io.IOException
- In case of some error during decompression
-
getResultStatus
public DecoderJNI.Status getResultStatus()
Get the result of decompression.- Returns:
DecoderJNI.Status
-
getDecompressedData
public byte[] getDecompressedData()
Get decompressed data.- Returns:
byte
array if decompression was successful elsenull
-
getDecompressedDataByteBuf
public io.netty.buffer.ByteBuf getDecompressedDataByteBuf()
Get decompressed data.- Returns:
ByteBuf
if decompression was successful elsenull
-
-