Package org.liufree.xmindparser
Class ZipUtils
- java.lang.Object
-
- org.liufree.xmindparser.ZipUtils
-
public class ZipUtils extends Object
- Author:
- liufree ZipUtil zip解压工具 2020/4/14 15:39
-
-
Constructor Summary
Constructors Constructor Description ZipUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringextract(String fileName)返回解压后的文件夹名字static Map<String,String>getContents(List<String> subFileNames, String fileName, String extractFileDir)找到压缩文件中匹配的子文件,返回的为 getContents("comments.xml, unzipstatic StringgetFileContent(String fileName)
-
-
-
Method Detail
-
getContents
public static Map<String,String> getContents(List<String> subFileNames, String fileName, String extractFileDir) throws IOException, org.apache.commons.compress.archivers.ArchiveException
找到压缩文件中匹配的子文件,返回的为 getContents("comments.xml, unzip- Parameters:
subFileNames-fileName-- Throws:
IOExceptionorg.apache.commons.compress.archivers.ArchiveException
-
extract
public static String extract(String fileName) throws IOException, org.apache.commons.compress.archivers.ArchiveException
返回解压后的文件夹名字- Parameters:
fileName-- Returns:
- Throws:
IOExceptionorg.apache.commons.compress.archivers.ArchiveException
-
getFileContent
public static String getFileContent(String fileName) throws IOException
- Throws:
IOException
-
-