Class DirectDecompress

java.lang.Object
com.aayushatharva.brotli4j.decoder.DirectDecompress

public final class DirectDecompress extends Object
Directly decompresses data using Decoder.decompress(byte[])
  • Method Details

    • decompress

      public static DirectDecompress decompress(byte[] compressedData) throws IOException
      Initiate direct decompression of data
      Parameters:
      compressedData - Compressed data as Byte Array
      Returns:
      DirectDecompress Instance
      Throws:
      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 else null
    • getDecompressedDataByteBuf

      public io.netty.buffer.ByteBuf getDecompressedDataByteBuf()
      Get decompressed data.
      Returns:
      ByteBuf if decompression was successful else null