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
IOException
public static void createZipFile(org.slf4j.Logger log, File sourceDir, File outputZipFile, FileFilter filter) throws IOException
IOException
public static void zipDirectory(org.slf4j.Logger log, File directory, ZipOutputStream zos, String path, FileFilter filter) throws IOException
IOException
protected static boolean matches(FileFilter filter, File f)
public static void unzip(InputStream in, File toDir) throws IOException
IOException
Copyright © 2011–2015 Red Hat. All rights reserved.