CompressionUtils

Inheritance: java.lang.Object

public class CompressionUtils

Provides utility methods for compression and decompression.

Constructors

ConstructorDescription
CompressionUtils()

Methods

MethodDescription
decodeByBrotli(byte[] input)Decompresses the given Brotli-compressed byte array.
encodeByBrotli(byte[] buff, int buffLength)Compresses the given byte array using the Brotli algorithm.
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

CompressionUtils()

public CompressionUtils()

decodeByBrotli(byte[] input)

public static byte[] decodeByBrotli(byte[] input)

Decompresses the given Brotli-compressed byte array.

Parameters:

ParameterTypeDescription
inputbyte[]The compressed data.

Returns: byte[] - The decompressed byte array.

encodeByBrotli(byte[] buff, int buffLength)

public static byte[] encodeByBrotli(byte[] buff, int buffLength)

Compresses the given byte array using the Brotli algorithm.

Parameters:

ParameterTypeDescription
buffbyte[]The input buffer to compress.
buffLengthintThe length of the data to compress.

Returns: byte[] - The compressed byte array.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int