Uses of Class
com.luna.common.file.compress.ZipWriter
-
Uses of ZipWriter in com.luna.common.file.compress
Modifier and TypeMethodDescriptionZipWriter.add
(boolean withSrcDir, FileFilter filter, File... files) 对文件或文件目录进行压缩ZipWriter.add
(String[] paths, InputStream[] ins) 对流中的数据加入到压缩文件
路径列表和流列表长度必须一致ZipWriter.add
(String path, InputStream in) 添加文件流到压缩包,添加后关闭输入文件流
如果输入流为null
,则只创建空目录static ZipWriter
创建ZipWriterstatic ZipWriter
ZipWriter.of
(OutputStream out, Charset charset) 创建ZipWriterZipWriter.setComment
(String comment) 设置注释ZipWriter.setLevel
(int level) 设置压缩级别,可选1~9,-1表示默认