Java Utililty Methods Zip File

List of utility methods to do Zip File

Description

The list of methods to do Zip File are organized into topic(s).

Method

voidzipFile(String inPath, String outPath, String nameInsideZip)
zip file
try {
    FileInputStream in = new FileInputStream(inPath);
    try {
        ZipOutputStream out = new ZipOutputStream(new FileOutputStream(outPath));
        out.putNextEntry(new ZipEntry(nameInsideZip));
        byte[] buffer = new byte[BLOCK_SIZE];
        int len;
        while ((len = in.read(buffer)) > 0) {
...