public class GZipUtil extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
GZipUtil.GZip
压缩方式
|
| 构造器和说明 |
|---|
GZipUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
gzip(GZipUtil.GZip zip,
byte[] in) |
String |
gzip(GZipUtil.GZip zip,
String text) |
byte[] |
ungzip(GZipUtil.GZip zip,
byte[] in) |
io.netty.buffer.ByteBuf |
ungzip(GZipUtil.GZip gZip,
io.netty.buffer.ByteBuf in)
Proto对象GZip解压
|
String |
ungzip(GZipUtil.GZip zip,
String text) |
public String gzip(GZipUtil.GZip zip, String text)
zip - text - public String ungzip(GZipUtil.GZip zip, String text)
zip - text - public byte[] gzip(GZipUtil.GZip zip, byte[] in)
zip - in - public byte[] ungzip(GZipUtil.GZip zip, byte[] in)
zip - in - public io.netty.buffer.ByteBuf ungzip(GZipUtil.GZip gZip, io.netty.buffer.ByteBuf in)
in - Copyright © 2020–2022 The AIM Project. All rights reserved.