package com.daimafans.demo;
import net.lingala.zip4j.core.ZipFile;
import net.lingala.zip4j.exception.ZipException;
/**
* 删除压缩文件中的文件
*
* @author daimafans.com
* @date 2018-11-29
*/
public class DeleteFromZip
{
public static void main(String[] args)
{
try
{
ZipFile zipFile = new ZipFile("D:\\test.zip");
zipFile.removeFile("ks/add");
}
catch (ZipException e)
{
e.printStackTrace();
}
}
}