This commit is contained in:
18
README.md
18
README.md
@@ -1,3 +1,19 @@
|
||||
# timi-compress
|
||||
|
||||
Java 压缩、解压缩工具
|
||||
Java 压缩、解压缩工具
|
||||
|
||||
## 调用方式
|
||||
|
||||
压缩:
|
||||
|
||||
```java
|
||||
ZipCompressor.of("testSrc").toFile("testOut/test.zip");
|
||||
TarCompressor.of(file).toStream(outputStream);
|
||||
```
|
||||
|
||||
解压:
|
||||
|
||||
```java
|
||||
ZipDecompressor.of("testOut/test.zip").to("testOutDe");
|
||||
GZipDecompressor.of(inputStream).to("testOutDe");
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user