Top Description Fields Constructors Methods
com.aayushatharva.brotli4j.decoder

public final Class DirectDecompress

extends Object
Class Inheritance
Annotations
@Local
Imports
com.aayushatharva.brotli4j.common.annotations.Local, io.netty.buffer.ByteBuf, .ByteBufUtil, .Unpooled, java.io.IOException

Directly decompresses data using Decoder#decompress(byte[])

Field Summary

Modifier and TypeField and Description
private ByteBuf
private byte[]
private final DecoderJNI.Status

Constructor Summary

AccessConstructor and Description
pack-priv
DirectDecompress(DecoderJNI.Status resultStatus, byte[] decompressedData, ByteBuf byteBuf)

Method Summary

Modifier and TypeMethod and Description
public static DirectDecompress

Returns:

DirectDecompress Instance
decompress
(byte[]
Compressed data as Byte Array
compressedData
)

Initiate direct decompression of data

public byte[]

Returns:

byte array if decompression was successful else null
getDecompressedData
()

Get decompressed data.

public ByteBuf

Returns:

ByteBuf if decompression was successful else null
getDecompressedDataByteBuf
()

Get decompressed data.

public DecoderJNI.Status
getResultStatus()

Get the result of decompression.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

byteBufback to summary
private ByteBuf byteBuf
decompressedDataback to summary
private byte[] decompressedData
resultStatusback to summary
private final DecoderJNI.Status resultStatus

Constructor Detail

DirectDecompressback to summary
pack-priv DirectDecompress(DecoderJNI.Status resultStatus, byte[] decompressedData, ByteBuf byteBuf)

Method Detail

decompressback to summary
public static DirectDecompress decompress(byte[] compressedData) throws IOException

Initiate direct decompression of data

Parameters
compressedData:byte[]

Compressed data as Byte Array

Returns:DirectDecompress

DirectDecompress Instance

Exceptions
IOException:
In case of some error during decompression
getDecompressedDataback to summary
public byte[] getDecompressedData()

Get decompressed data.

Returns:byte[]

byte array if decompression was successful else null

getDecompressedDataByteBufback to summary
public ByteBuf getDecompressedDataByteBuf()

Get decompressed data.

Returns:ByteBuf

ByteBuf if decompression was successful else null

getResultStatusback to summary
public DecoderJNI.Status getResultStatus()

Get the result of decompression.

Returns:DecoderJNI.Status

DecoderJNI.Status