public class ZipDirectory
extends java.lang.Object
Constructor and Description |
---|
ZipDirectory() |
Modifier and Type | Method and Description |
---|---|
static boolean |
unzipDirectory(java.io.File file,
java.io.File destinationDirectory)
Unzip directory.
|
static boolean |
zipDirectory(java.io.File directory,
java.io.File zipFileDestination)
Zip directory.
|
public static boolean unzipDirectory(java.io.File file, java.io.File destinationDirectory) throws java.util.zip.ZipException, java.io.IOException
file
- the filedestinationDirectory
- the destination directoryjava.util.zip.ZipException
- the zip exceptionjava.io.IOException
- Signals that an I/O exception has occurred.public static boolean zipDirectory(java.io.File directory, java.io.File zipFileDestination) throws java.io.IOException
directory
- the directoryzipFileDestination
- the zip file destinationjava.io.IOException
- Signals that an I/O exception has occurred.