|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.joseluismartin.util.ZipFileUtils
public abstract class ZipFileUtils
Utility library to manage Zip files.
| Constructor Summary | |
|---|---|
ZipFileUtils()
|
|
| Method Summary | |
|---|---|
static void |
addFile(File zipFile,
File addFile)
Add File to Zip File |
static byte[] |
readEntryAsByteArray(ZipFile file,
ZipEntry ze)
Read a Zip Entry as byte[] |
static void |
unzip(ZipFile file,
String dirname)
Unzip file to dirname |
static void |
zip(File[] files,
String zipFilename)
Create a zip file with files |
static void |
zip(File file,
String zipFilename)
Create a zip file from zipFileName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZipFileUtils()
| Method Detail |
|---|
public static void unzip(ZipFile file,
String dirname)
file - file to unzipdirname - dir name to store unzipped entries
public static void zip(File file,
String zipFilename)
throws Exception
file - to compresszipFilename - to create
Exception - if fail
public static void zip(File[] files,
String zipFilename)
throws Exception
files - to compresszipFilename - zip file to create
Exception - if fail
public static void addFile(File zipFile,
File addFile)
throws Exception
zipFile - to add onaddFile - file to add
Exception - if fail
public static byte[] readEntryAsByteArray(ZipFile file,
ZipEntry ze)
throws IOException
file - zip fileze - zip entry
IOException - if fail
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||