Compressing files

Top  Previous  Next

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"));





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC