Compressing files |
The Gzip 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 Gzip instance Gzip gzip = new Gzip();
// compress file gzip.compress(new File("C:/tmp/test.doc"), new File("C:/tmp/test.doc.gz")); |