public class Gzip extends Object implements Closeable
Constructor and Description |
---|
Gzip(InputStream source,
OutputStream target)
构造
|
Modifier and Type | Method and Description |
---|---|
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
in interface Closeable
close
in interface AutoCloseable
Copyright © 2024. All rights reserved.