public class Zips extends Object
| Constructor and Description |
|---|
Zips() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createZipFile(org.slf4j.Logger log,
File sourceDir,
File outputZipFile)
Creates a zip fie from the given source directory and output zip file name
|
static void |
createZipFile(org.slf4j.Logger log,
File sourceDir,
File outputZipFile,
FileFilter filter) |
protected static boolean |
matches(FileFilter filter,
File f) |
static void |
unzip(InputStream in,
File toDir)
Unzips the given input stream of a ZIP to the given directory
|
static void |
zipDirectory(org.slf4j.Logger log,
File directory,
ZipOutputStream zos,
String path,
FileFilter filter)
Zips the directory recursively into the ZIP stream given the starting path and optional filter
|
public static void createZipFile(org.slf4j.Logger log,
File sourceDir,
File outputZipFile)
throws IOException
IOExceptionpublic static void createZipFile(org.slf4j.Logger log,
File sourceDir,
File outputZipFile,
FileFilter filter)
throws IOException
IOExceptionpublic static void zipDirectory(org.slf4j.Logger log,
File directory,
ZipOutputStream zos,
String path,
FileFilter filter)
throws IOException
IOExceptionprotected static boolean matches(FileFilter filter, File f)
public static void unzip(InputStream in, File toDir) throws IOException
IOExceptionCopyright © 2011–2014 Red Hat. All rights reserved.