From: Jochen H. <Hoe...@In...> - 2004-09-23 15:31:42
|
On Wednesday 22 September 2004 19:55, Hulse, Michael wrote: > Hi, > =20 > I'm kind of new to using zip in Java so please excuse. > =20 > I have just downloaded jazzlib 0.07 and I am trying to unzip a file that= =20 > I can mount in NetBeans and see it's contents. > =20 > My error is=20 > net.sf.jazzlib.ZipException: Wrong Local header signature: a5a4d This looks like an exe file, probably a self-extracting zip file, which sta= rts with some executable program and after that follows the zip archive. The jazzlib.ZipInputStream can only handle pure zip files without anything in front. I think java.util.zip.ZipInputStream has a similar behaviour. Th= e main reason is that for those self-extracting files one normally seeks to the en= d of=20 the file, where the table of contents is stored, and then seeks back to the= =20 first entry. This is not possible for input stream as they are not seekable. Jochen =2D-=20 Jochen Hoenicke, University of Oldenburg, 26111 Oldenburg, Germany Email: hoe...@in... Tel: +49 441 798 3124 |