java-zip4j-tut-create-split-zip-files-2
import net.lingala.zip4j.ZipFile;
import net.lingala.zip4j.exception.ZipException;
import net.lingala.zip4j.model.ZipParameters;
import java.io.File;
import java.io.IOException;
public class SampleClass{
public static void main(String[] args)
throws ZipException,
IOException{
ZipFile zip = null;
try{
zip = new ZipFile("myzip.zip");
zip.createSplitZipFileFromFolder
(new File("folder"),
new ZipParameters(),
true,
81920);
}
finally{
if(zip != null)
zip.close();
}
System.out.println
("main thread end");
}
}
import net.lingala.zip4j.exception.ZipException;
import net.lingala.zip4j.model.ZipParameters;
import java.io.File;
import java.io.IOException;
public class SampleClass{
public static void main(String[] args)
throws ZipException,
IOException{
ZipFile zip = null;
try{
zip = new ZipFile("myzip.zip");
zip.createSplitZipFileFromFolder
(new File("folder"),
new ZipParameters(),
true,
81920);
}
finally{
if(zip != null)
zip.close();
}
System.out.println
("main thread end");
}
}