android获取zipfile中文件的压缩大小 [英] android get compressed size of a file in a zipfile

查看:77
本文介绍了android获取zipfile中文件的压缩大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以获取zip归档文件中一个文件的压缩文件大小?

Is there a way to get the compressed filesize of one file inside a zip archive?

ZipEntry.getSize()给出未压缩的大小.

推荐答案

这很容易发现...

zentr.getCompressedSize(); http://developer.android.com/reference/java/util/zip/ZipEntry.html#getCompressedSize ()

这篇关于android获取zipfile中文件的压缩大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆