Compressing files |
The Zip class provides several methods for compressing files and entire directories recursively. Please review the JavaDoc for a complete listing of all available methods.
Example
// create new Zip instance Zip zip = new Zip();
// compress file zip.compress(new File("C:/tmp/test.doc"), new File("C:/tmp/test.doc.zip")); |