Modifier and Type | Method and Description |
---|---|
static void |
extract(ZipFile zipFile,
File destDir)
Extract a
zipFile to destDir . |
static void |
extract(ZipFile zipFile,
File destDir,
Predicate<? super ZipEntry> predicate)
Extract a
zipFile to destDir . |
public static void extract(ZipFile zipFile, File destDir) throws IOException
zipFile
to destDir
.zipFile
- The ZipFile
.destDir
- The destination directory.IOException
- If an I/O error has occurred.NullPointerException
- If zipFile
or destDir
is
null.public static void extract(ZipFile zipFile, File destDir, Predicate<? super ZipEntry> predicate) throws IOException
zipFile
to destDir
. Only entries that pass the
predicate
test will be extracted.zipFile
- The ZipFile
.destDir
- The destination directory.predicate
- The Predicate
(can be null).IOException
- If an I/O error has occurred.NullPointerException
- If zipFile
or destDir
is
null.Copyright © 2020 LibJ. All rights reserved.