本文整理了Java中com.saha.slnarch.common.file.ZipHelper
类的一些代码示例,展示了ZipHelper
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipHelper
类的具体详情如下:
包路径:com.saha.slnarch.common.file.ZipHelper
类名称:ZipHelper
暂无
代码示例来源:origin: io.github.aktoluna/slnarch-common
public static void zipDirectory(File directoryPath, File outputPath) {
zipDirectory(directoryPath, outputPath, ZipUtil.DEFAULT_COMPRESSION_LEVEL);
}
代码示例来源:origin: io.github.aktoluna/slnarch-common
public static void zipDirectory(String directoryPath, String outputPath) {
zipDirectory(new File(directoryPath), new File(outputPath));
}
代码示例来源:origin: io.github.aktoluna/slnarch-report
public File createZip() {
ZipHelper.zipDirectory(getReportDirectory(), getZipFilePath());
return FileHelper.toFile(getZipFilePath());
}
内容来源于网络,如有侵权,请联系作者删除!