From: <joe...@gm...> - 2001-10-09 17:17:24
|
Hi! OK it's me again. Please apologize but my fix for ZipFile.java was not correct! It fails with the trivial case, an empty zip file. Empty zip files are rare and useless, of course, but an EOFException in that case is really not required at all. Attached you find a correct ZipFIle.java that works now. Another issue was that DeflaterEngine does not correctly deflate multiple zip entries. It fails at a subsequent zip entry to deflate with an ArrayIndexOutOfBoundException. I guess this has been reported as a bug. I fixed this, too. You find a modified DeflaterEngine.java attached. The reset() method has been extended by two more lines to reset some fields. With jazzlib status now, I can now add and remove zip entries within an archive from a Swing tool. That's cool! Once again thanks for the library. If there are more jazzlib issues, I'll be back. Cheers, Jörg |