| 程序包 | 说明 |
|---|---|
| org.dromara.hutool.extra.compress.archiver |
基于commons-compress的打包(压缩)封装
见:https://commons.apache.org/proper/commons-compress/
|
| 限定符和类型 | 方法和说明 |
|---|---|
StreamArchiver |
StreamArchiver.add(File file,
String path,
Predicate<File> predicate)
将文件或目录加入归档包,目录采取递归读取方式按照层级加入
|
StreamArchiver |
StreamArchiver.finish()
结束已经增加的文件归档,此方法不会关闭归档流,可以继续添加文件
|
static StreamArchiver |
StreamArchiver.of(Charset charset,
String archiverName,
File file)
创建归档器
|
static StreamArchiver |
StreamArchiver.of(Charset charset,
String archiverName,
OutputStream out)
创建归档器
|
Copyright © 2023. All rights reserved.