| java.lang.Object org.continuent.sequoia.controller.backup.backupers.Zipper
STORE_FULL_PATH_IN_ZIP | final public static int STORE_FULL_PATH_IN_ZIP(Code) | | Store full path in zip when archiving
|
STORE_NAME_ONLY_IN_ZIP | final public static int STORE_NAME_ONLY_IN_ZIP(Code) | | Store only file names in zip when archiving
|
STORE_PATH_FROM_ZIP_ROOT | final public static int STORE_PATH_FROM_ZIP_ROOT(Code) | | Store path relative to root directory in zip when archiving
|
STORE_RELATIVE_PATH_IN_ZIP | final public static int STORE_RELATIVE_PATH_IN_ZIP(Code) | | Store relative path in zip when archiving
|
ZIP_EXT | final public static String ZIP_EXT(Code) | | Extension for zipped file names
|
unzip | public static void unzip(String zipName, String targetDir) throws Exception(Code) | | Expand the content of the zip file
Parameters: zipName - of the file to expand Parameters: targetDir - where to place unzipped files throws: Exception - if fails |
zip | public static void zip(String zipName, String rootDir, int storePolicy) throws Exception(Code) | | Create a zip file from directory
Parameters: zipName - name of the file to create Parameters: rootDir - root directory to archive Parameters: storePolicy - the store policy to use (STORE_FULL_PATH_IN_ZIP,STORE_NAME_ONLY_IN_ZIP, STORE_RELATIVE_PATH_IN_ZIP orSTORE_PATH_FROM_ZIP_ROOT) throws: Exception - if fails |
|
|