利用ZipFile获取压缩文件下的所有文件名

测试结果:

ZipFile引包:

import org.apache.tools.zip.ZipEntry;
import org.apache.tools.zip.ZipFile;

 maven坐标

<!-- ant -->
    <dependency>
      <groupId>org.apache.ant</groupId>
      <artifactId>ant</artifactId>
      <version>1.9.7</version>
    </dependency>

猜你喜欢

转载自www.cnblogs.com/alphajuns/p/12442438.html
今日推荐