public class ZipUtility extends Object
| 构造器和说明 |
|---|
ZipUtility() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
decompress(File srcFile,
File destFile,
String sourcepath,
String replacepath)
解压缩.
|
static void |
decompress(File srcFile,
String sourcepath,
String replacepath)
解压缩.
|
static void |
decompress(File srcFile,
String destPath,
String sourcepath,
String replacepath)
解压缩.
|
static void |
decompress(String srcPath,
String sourcepath,
String replacepath)
文件 解压缩.
|
static void |
decompress(String srcPath,
String destPath,
String sourcePath,
String replacepath)
文件 解压缩.
|
static String |
getClassFile(Class clazz)
Gets the class file.
|
static String |
getClassPath(Class clazz)
得到类的路径,例如E:/workspace/JavaGUI/bin/com/util.
|
public static String getClassFile(Class clazz)
clazz - the clazzpublic static String getClassPath(Class clazz) throws Exception
clazz - the clazzException - the exceptionpublic static void decompress(String srcPath, String sourcepath, String replacepath) throws Exception
srcPath - 源文件路径sourcepath - the sourcepathreplacepath - the replacepathException - the exceptionpublic static void decompress(File srcFile, String sourcepath, String replacepath) throws Exception
srcFile - the src filesourcepath - the sourcepathreplacepath - the replacepathException - the exceptionpublic static void decompress(File srcFile, File destFile, String sourcepath, String replacepath) throws Exception
srcFile - the src filedestFile - the dest filesourcepath - the sourcepathreplacepath - the replacepathException - the exceptionpublic static void decompress(File srcFile, String destPath, String sourcepath, String replacepath) throws Exception
srcFile - the src filedestPath - the dest pathsourcepath - the sourcepathreplacepath - the replacepathException - the exceptionCopyright © 2017. All rights reserved.