CompressionUtils

Inheritance: java.lang.Object

public class CompressionUtils

提供压缩和解压缩的实用方法。

构造函数

构造函数描述
CompressionUtils()

方法

方法描述
decodeByBrotli(byte[] input)解压给定的 Brotli 压缩字节数组。
encodeByBrotli(byte[] buff, int buffLength)使用 Brotli 算法压缩给定的字节数组。
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)

解压给定的 Brotli 压缩字节数组。

Parameters:

参数类型描述
输入byte[]压缩数据。

Returns: byte[] - 解压后的字节数组。

encodeByBrotli(byte[] buff, int buffLength)

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

使用 Brotli 算法压缩给定的字节数组。

Parameters:

参数类型描述
buffbyte[]要压缩的输入缓冲区。
buffLengthint要压缩的数据长度。

Returns: byte[] - 压缩后的字节数组。

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

参数类型描述
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:

参数类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

参数类型描述
arg0long
arg1int