Archive archive = new Archive("C:\\Users\\ws\\Desktop\\新建 DOCX 文档.zip");
List<ArchiveEntry> entries = archive.getEntries();
for (ArchiveEntry entry : entries) {
System.out.println(entry.getName());
OutputStream os = new FileOutputStream("C:\\Users\\ws\\Desktop\\123\\"+entry.getName());
entry.extract(os);
Long length = entry.getLength();
System.out.println(length);
os.close();
}
archive.close();
在哪里可以指定读取文件名的字符集