android 在不解压压缩文件的情况下,读取压缩文件内容
来源:互联网 发布:个人简介的app源码 编辑:程序博客网 时间:2024/05/16 13:53
/** * 无需解压直接读取Zip文件和文件内容 * * @param file * @throws Exception */ public static InputStream readZipFile(String file) throws Exception { InputStream input = null; ZipFile zf = new ZipFile(file); InputStream in = new BufferedInputStream(new FileInputStream(file)); ZipInputStream zin = new ZipInputStream(in); ZipEntry ze; while ((ze = zin.getNextEntry()) != null) { if (ze.isDirectory()) { // Do nothing } else { if (ze.getName().equals("map.xml")) { input = zf.getInputStream(ze); } } } zin.closeEntry(); return input; }
阅读全文
0 0
- android 在不解压压缩文件的情况下,读取压缩文件内容
- 如何不解压查看压缩文件的内容
- java解压缩文件和不解压读取压缩文件中的文本文件内容
- linux下解压,压缩文件
- Android实现解压压缩文件
- LINUX下的各种压缩文件解压
- Linux下各种压缩文件的解压方法
- linux下压缩文件的解压命令
- linux下解压各种格式的压缩文件
- Linux下解压rar格式的压缩文件
- Linux下各种压缩文件的解压方法
- linux下压缩文件的解压命令
- Linux 下常用压缩文件的解压、压缩
- linux下不同压缩文件的解压指令
- 话说linux下压缩文件的解压
- linux下,几种压缩文件的解压
- Linux下解压和压缩文件的方式
- 压缩文件的解压 linux
- windows安装docker以及安装ubuntu
- Dependency Walker使用说明[转]
- http://www.cnblogs.com/cnajian/archive/2011/03/02/1968641.html
- 《How Tomcat Works》阅读笔记二
- javax.el.ELException: The identifier [new] is not 错误问题原因
- android 在不解压压缩文件的情况下,读取压缩文件内容
- How to pass an array from C++ to an embedded python
- PentestBox-v2.2 基础
- 三、版本库版本回退
- 一个简单实用的jquery轮播插件
- IT人经常上的网站有哪些?
- 《How Tomcat Works》阅读笔记三
- 适合python开发者逛的网站
- 初始化总结