|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.util.ZipUtil
public class ZipUtil
Utility class to perform zip/unzip operations on files and directories.
Constructor Summary | |
---|---|
ZipUtil()
Constructor for ZipUtil. |
Method Summary | |
---|---|
static void |
unzip(java.io.File zipFile,
java.io.File destDir)
Unpacks a zip file to the target directory. |
static void |
zip(java.io.File zipFile,
java.io.File parentDir,
java.io.File[] sources,
char pathSeparator)
Recursively zips a set of root entries into a zipfile, compressing the contents. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZipUtil()
Method Detail |
---|
public static void unzip(java.io.File zipFile, java.io.File destDir) throws java.io.IOException
zipFile
- destDir
-
java.io.IOException
public static void zip(java.io.File zipFile, java.io.File parentDir, java.io.File[] sources, char pathSeparator) throws java.io.IOException
zipFile
- target zip file.parentDir
- a directory containing source files to zip.sources
- an array of files and/or directories to zip.pathSeparator
- path separator for zip entries.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |