|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.utilities.Zip
public class Zip
Zip and GZip utilities.
| Constructor Summary | |
|---|---|
Zip()
|
|
| Method Summary | |
|---|---|
static void |
extractFile(java.io.File zipFile,
java.lang.String entryName,
java.io.File destination)
Extracts the file given by entryName to destination. |
static void |
gunzip()
|
static void |
gzip()
|
static void |
main(java.lang.String[] args)
|
static void |
unzip(java.io.InputStream is,
java.io.File destDir)
Unzips the InputStream to the given destination directory. |
static void |
unzip(java.io.InputStream is,
java.lang.String destDir)
|
static void |
zip(java.io.File destination,
java.io.File source)
Create a zip file. |
static void |
zip(java.io.File destination,
java.io.File[] source)
Create a zip file. |
static void |
zip(java.lang.String destination,
java.lang.String source)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Zip()
| Method Detail |
|---|
public static void zip(java.io.File destination,
java.io.File source)
throws java.io.FileNotFoundException,
java.io.IOException
destination - The zip file to create.source - The file or directory to be zipped.
java.io.FileNotFoundException
java.io.IOException
public static void zip(java.io.File destination,
java.io.File[] source)
throws java.io.FileNotFoundException,
java.io.IOException
destination - The zip file to create.source - The File array to be zipped.
java.io.FileNotFoundException
java.io.IOException
public static void extractFile(java.io.File zipFile,
java.lang.String entryName,
java.io.File destination)
throws java.io.IOException
zipFile - entryName - destination - The extracted destination File.
java.io.IOException
public static void unzip(java.io.InputStream is,
java.io.File destDir)
throws java.io.FileNotFoundException,
java.io.IOException
is - destDir -
java.io.FileNotFoundException
java.io.IOExceptionpublic static void gzip()
public static void gunzip()
public static void zip(java.lang.String destination,
java.lang.String source)
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public static void unzip(java.io.InputStream is,
java.lang.String destDir)
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||