|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsamyedit.Zip
public class Zip
defines basic zip archive functions:
| Constructor Summary | |
|---|---|
Zip()
|
|
| Method Summary | |
|---|---|
static int |
compress(java.lang.String zipfile,
java.lang.String directory)
stores all file found in targetDir into the archive specified |
static int |
decompress(java.lang.String archive,
java.lang.String targetDir)
extracts all file found in archive into the targetDir |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Zip()
| Method Detail |
|---|
public static int compress(java.lang.String zipfile,
java.lang.String directory)
zipfile - file to be createddirectory - directory of which all files will be compressed into the zipfile
public static int decompress(java.lang.String archive,
java.lang.String targetDir)
archive - file to be extractedtargetDir - directory directory of which all files will be compressed into the zipfile
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||