public class GzipUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
GZIP_ENCODE_ISO_8859_1 |
static String |
GZIP_ENCODE_UTF_8 |
| 构造器和说明 |
|---|
GzipUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
compress(byte[] data,
int offset,
int length) |
static byte[] |
compress(byte[] data,
int offset,
int length,
String encoding) |
static byte[] |
uncompress(byte[] bytes) |
static String |
uncompressToString(byte[] bytes) |
static String |
uncompressToString(byte[] bytes,
String encoding) |
public static byte[] compress(byte[] data,
int offset,
int length)
public static byte[] compress(byte[] data,
int offset,
int length,
String encoding)
public static byte[] uncompress(byte[] bytes)
public static String uncompressToString(byte[] bytes)
Copyright © 2023. All rights reserved.