commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C. Grobmeier" <grobme...@possessed.de>
Subject Re: [VFS] Getting package entry compressed size
Date Wed, 17 May 2006 14:41:12 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>> Could it be possible to add method for receiving also compressed size of
>> file inside a package (zip, tgz etc)?

> No, I dont think so. As far as I know the zip library do not provide
> such an information and in case of tar.gz the situations is even more
> complex.
> 
> tar is an archive only (no compression)
> this archive will be compressed using gzip
> So the files inside an tar archive even dont know that they are
> compressed and so they didnt know its compressed file size.
> In case of .tar.gz the whole tar is compressed at once - not at file level.

The zip-lib could be extended to return an compressed size, as far as i
know. For tar archive the getCompressedSize()-method could return always
100% of the size for each entry.

Please note, that the current drafts differ between archivers and
compressors. So a compressor (like bzip2) will not have this method.

Would that help? In which cases is this information useful?

Regards,
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEazYIkv8rKBUE/T4RAj+RAJ9qkDkMI35BfaWFBLM5iDvfCtFsrgCggFNq
IyZeQx+z4uqVHK9PqIWRNuk=
=TXQg
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message