public class Gzip extends Object implements Closeable
| 构造器和说明 |
|---|
Gzip(InputStream source,
OutputStream target)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
OutputStream |
getTarget()
获取目标流
|
Gzip |
gzip()
将普通数据流压缩
|
static Gzip |
of(InputStream source,
OutputStream target)
创建Gzip
|
Gzip |
unGzip()
将压缩流解压到target中
|
public Gzip(InputStream source, OutputStream target)
source - 源流target - 目标流public static Gzip of(InputStream source, OutputStream target)
source - 源流target - 目标流public OutputStream getTarget()
public Gzip gzip()
public Gzip unGzip()
public void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableCopyright © 2024. All rights reserved.