Package cn.mapway.ui.server.font
Class ZipUtil
- java.lang.Object
-
- cn.mapway.ui.server.font.ZipUtil
-
public class ZipUtil extends Object
ZipUtil- Author:
- zhangjianshe
-
-
Constructor Summary
Constructors Constructor Description ZipUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringlistInfo(File file)static FilenewFile(File destinationDir, ZipEntry zipEntry, boolean flattenPath)static voidunzip(File zipFile, String location)static voidunzip(String zipFile, String location)static voidzip(File[] files, String zipFile)
-
-
-
Method Detail
-
zip
public static void zip(File[] files, String zipFile) throws IOException
- Throws:
IOException
-
unzip
public static void unzip(File zipFile, String location) throws IOException
- Throws:
IOException
-
unzip
public static void unzip(String zipFile, String location) throws IOException
- Throws:
IOException
-
newFile
public static File newFile(File destinationDir, ZipEntry zipEntry, boolean flattenPath) throws IOException
- Throws:
IOException
-
-