Setting the files original size in ZipEntry
807580Jun 4 2009 — edited Mar 2 2010I 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.