org.xhtmlrenderer.util
Class Zipper
java.lang.Object
org.xhtmlrenderer.util.Zipper
public class Zipper
- extends Object
Create a ZIP-format file from the contents of some directory. All files
in the directory are included. To use, instantiate with a reference to
the directory to ZIP, and to the output file to create, then call
zipDirectory() to create the output file.
Note that this is ZIP-compatible, not GZIP-compatible (ZIP is both an archive format
and a compression format, GZIP is just a compression format).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Zipper
public Zipper(File sourceDir,
File outputFile)
main
public static void main(String[] args)
zipDirectory
public File zipDirectory()
throws IOException
- Throws:
IOException
Copyright © 2013. All Rights Reserved.