Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 zip 存档中获取一个文件的压缩文件大小?
ZipEntry.getSize()给出未压缩的大小。
ZipEntry.getSize()
这很容易发现...
zentr.getCompressedSize(); http://developer.android.com/reference/java/util/zip/ZipEntry.html#getCompressedSize ()
zentr.getCompressedSize();