| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgoldengate.common.tar.ZipUtility
public class ZipUtility

| Constructor Summary | |
|---|---|
ZipUtility()
 | 
|
| Method Summary | |
|---|---|
static boolean | 
createZipFromDirectory(String directory,
                       String filename,
                       boolean absolute)
Create a new Zip from a root directory  | 
static boolean | 
createZipFromFiles(File[] files,
                   String filename)
Create a new Zip from an array of Files (only name of files will be used)  | 
static boolean | 
createZipFromFiles(List<File> files,
                   String filename)
Create a new Zip from a list of Files (only name of files will be used)  | 
static void | 
main(String[] args)
 | 
static List<String> | 
unZip(File tarFile,
      File directory)
Extract all files from Tar into the specified directory  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ZipUtility()
| Method Detail | 
|---|
public static boolean createZipFromDirectory(String directory,
                                             String filename,
                                             boolean absolute)
directory - the base directoryfilename - the output filenameabsolute - store absolute filepath (from directory) or only filename
public static boolean createZipFromFiles(List<File> files,
                                         String filename)
files - list of files to addfilename - the output filename
public static boolean createZipFromFiles(File[] files,
                                         String filename)
files - array of files to addfilename - the output filename
public static List<String> unZip(File tarFile,
                                 File directory)
                          throws IOException
tarFile - directory - 
IOExceptionpublic static void main(String[] args)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||