fuin.org

Small Open Source Java Tools and Libraries

Decompress a ZIP archive

Decompress a zip file with a single line of code using Utils4J Internal link outside layout:
// ZIP archive to decompress
File zipFile = new File("c:/myfile.zip");

// Target directory
File targetDir = new File("c:/test");

// Unzip the content into the target directory
Utils4J.unzip(zipFile, targetDir);

You can find a full example here Internal link outside layout (Package "org.fuin.examples.utils4j").