public class ZipUtils extends Object
Constructor and Description |
---|
ZipUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
unzip(String zipFilePath) |
static void |
unzip(String zipFilePath,
String targetPath,
boolean overwrite) |
static void |
unzipHere(String zipFilePath) |
static boolean |
zip(String sourceFilePath,
String zipFilePath) |
static boolean |
zip(String sourceFilePath,
String zipFilePath,
boolean overwrite) |
public static boolean zip(String sourceFilePath, String zipFilePath) throws IOException
sourceFilePath
- zipFilePath
- IOException
public static boolean zip(String sourceFilePath, String zipFilePath, boolean overwrite) throws IOException
sourceFilePath
- zipFilePath
- overwrite
- IOException
public static void unzipHere(String zipFilePath) throws IOException
zipFilePath
- IOException
public static void unzip(String zipFilePath) throws IOException
zipFilePath
- IOException
public static void unzip(String zipFilePath, String targetPath, boolean overwrite) throws IOException
zipFilePath
- targetPath
- overwrite
- IOException
Copyright © 2018. All rights reserved.