public class CompressUtil extends Object
| 构造器和说明 |
|---|
CompressUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
compress(byte[] src)
Compress byte [ ].
|
static boolean |
isCompressData(byte[] bytes)
Is compress data boolean.
|
static byte[] |
uncompress(byte[] src)
Uncompress byte [ ].
|
public static byte[] compress(byte[] src)
throws IOException
src - the srcIOException - the io exceptionpublic static byte[] uncompress(byte[] src)
throws IOException
src - the srcIOException - the io exceptionpublic static boolean isCompressData(byte[] bytes)
bytes - the bytesCopyright © 2022 Seata. All rights reserved.