public class CompressUtils extends Object
| Constructor and Description | 
|---|
CompressUtils()  | 
| Modifier and Type | Method and Description | 
|---|---|
File | 
createZipFile(File sourceDir)
Method to zip all files in a given directory. 
 | 
File | 
createZippedBagFile(File sourceDir)
Method to create a zipped bag file from a given source directory. 
 | 
void | 
deleteFiles(List<File> files)  | 
File | 
extractZippedBagFile(String bagFilePath,
                                        String toDir)
Method to extract a given zipped bag file to a given output directory or to a temp directory if toDir is null. 
 | 
ArrayList<File> | 
getAllFilesList(File directory)
Method to get All Files List in a given directory. 
 | 
public CompressUtils()
public File createZipFile(File sourceDir) throws IOException
sourceDir - IOExceptionpublic File createZippedBagFile(File sourceDir) throws IOException
sourceDir - IOExceptionpublic File extractZippedBagFile(String bagFilePath, String toDir) throws IOException
bagFilePath - toDir - IOExceptionpublic ArrayList<File> getAllFilesList(File directory)
directory - public void deleteFiles(List<File> files)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.