Modifier and Type | Class and Description |
---|---|
static interface |
ZipUtils.ZipEntryFilter
Deprecated.
replaced by
Predicate in 6.2. |
Modifier and Type | Method and Description |
---|---|
static File |
unzip(File zip,
File toDir)
Unzip a file into a directory.
|
static File |
unzip(File zip,
File toDir,
Predicate<ZipEntry> filter)
Unzip a file to a directory.
|
static File |
unzip(File zip,
File toDir,
ZipUtils.ZipEntryFilter filter)
Deprecated.
replaced by
unzip(File, File, Predicate) in 6.2. |
static File |
unzip(InputStream zip,
File toDir) |
static File |
unzip(InputStream stream,
File toDir,
Predicate<ZipEntry> filter)
Unzip a file to a directory.
|
static File |
unzip(InputStream stream,
File toDir,
ZipUtils.ZipEntryFilter filter)
Deprecated.
replaced by
unzip(InputStream, File, Predicate) in 6.2. |
static void |
zipDir(File dir,
File zip) |
public static File unzip(File zip, File toDir) throws IOException
IOException
public static File unzip(InputStream zip, File toDir) throws IOException
IOException
@Deprecated public static File unzip(InputStream stream, File toDir, ZipUtils.ZipEntryFilter filter) throws IOException
unzip(InputStream, File, Predicate)
in 6.2.IOException
public static File unzip(InputStream stream, File toDir, Predicate<ZipEntry> filter) throws IOException
stream
- the zip input filetoDir
- the target directory. It is created if needed.filter
- filter zip entries so that only a subset of directories/files can be
extracted to target directory.toDir
IOException
@Deprecated public static File unzip(File zip, File toDir, ZipUtils.ZipEntryFilter filter) throws IOException
unzip(File, File, Predicate)
in 6.2.IOException
public static File unzip(File zip, File toDir, Predicate<ZipEntry> filter) throws IOException
zip
- the zip file. It must exist.toDir
- the target directory. It is created if needed.filter
- filter zip entries so that only a subset of directories/files can be
extracted to target directory.toDir
IOException
public static void zipDir(File dir, File zip) throws IOException
IOException
Copyright © 2009–2017 SonarSource. All rights reserved.