public class ZipUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
| Constructor and Description |
|---|
ZipUtil() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
gzip(byte[] buffer)
Gzip压缩
|
static byte[] |
unGzip(byte[] buffer)
Gzip 解压
|
static byte[] |
unGzip(byte[] buffer,
int readBufferSize)
Gzip 解压
|
public static final int BUFFER_SIZE
public static byte[] gzip(byte[] buffer)
buffer - 被压缩的字节流RuntimeException - IO异常public static byte[] unGzip(byte[] buffer)
buffer - 被压缩的字节流RuntimeException - IO异常public static byte[] unGzip(byte[] buffer,
int readBufferSize)
buffer - 被压缩的字节流readBufferSize - 一次读取的字节大小RuntimeException - IO异常Copyright © 2025. All rights reserved.