|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dmonix.util.zip.ZipUtil
Utility class for performing ZIP related operations.
Copyright: Copyright (c) 2004
Company: dmonix.org
| Method Summary | |
static int |
packDirectory(java.io.File dir,
java.io.File zipFile)
Packs all files in the given directory to a ZIP file. |
static int |
packDirectory(java.io.File dir,
java.io.FileFilter filter,
java.io.File zipFile)
Packs all matching files in the given directory to a ZIP file. |
void |
packFiles(java.io.File[] files,
java.io.File zipFile)
Creates a ZIP file and includes the given files. |
int |
unzipFile(java.io.File zipFile,
java.io.File path)
Unzips all entries in a ZIP file to the specified destination. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static int packDirectory(java.io.File dir,
java.io.File zipFile)
throws java.io.IOException
dir - The directoryzipFile - The ZIP file
java.io.IOException
public static int packDirectory(java.io.File dir,
java.io.FileFilter filter,
java.io.File zipFile)
throws java.io.IOException
dir - The directoryfilter - The filterzipFile - The ZIP file
java.io.IOException
public void packFiles(java.io.File[] files,
java.io.File zipFile)
throws java.io.IOException
files - The files to include in the ZIP filezipFile - The ZIP file
java.io.IOException
public int unzipFile(java.io.File zipFile,
java.io.File path)
throws java.io.IOException
zipFile - The ZIP filepath - The destination
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||