public class ZipUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
unzip(File zip,
File outputDir)
Unpacks the given file to the given output directory.
|
static void |
unzip(InputStream zip,
File outputDir)
Unpacks the given input stream to the given output directory.
|
static void |
zip(File zip,
File... inputs)
Packs the given input directory to the given file.
|
static void |
zip(OutputStream zip,
File... inputs)
Packs the given input directory to the given output stream.
|
public static void unzip(File zip, File outputDir) throws IOException
zip - outputDir - IOExceptionpublic static void unzip(InputStream zip, File outputDir) throws IOException
zip - outputDir - IOExceptionpublic static void zip(File zip, File... inputs) throws IOException
zip - inputs - IOExceptionpublic static void zip(OutputStream zip, File... inputs) throws IOException
zip - inputs - IOExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.