Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting the files original size in ZipEntry

807580Jun 4 2009 — edited Mar 2 2010
I need to create a ZipEntry with the correct original size. I've tried setting it using setSize() but it gets ignored.
I've figured out that the reason it gets ignored is because I haven't specified the CompressedSize and the CRC value as well... .mental!
If I do the compression in 2 passes, I can find out the compressed size but where on earth can I get the CRC value from? The CRC value is private in the ZipOutputstream.

I'm really stuck can anyone give me a hand to work out this madness.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 30 2010
Added on Jun 4 2009
13 comments
1,491 views