classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java.util.zip.InflaterInputStream patch


From: Tom Tromey
Subject: Re: java.util.zip.InflaterInputStream patch
Date: 19 Oct 2002 13:50:33 -0600
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Mark> +          //add a padding byte, 
Mark> +          //it's necessary when using native zlib
Mark> +          ++len;

Mark> When is this needed?

I wonder if it is related to this comment in libgcj:

      /* Using the no_header option, zlib requires an extra padding byte at the
      end of the stream in order to successfully complete decompression (see
      zlib/contrib/minizip/unzip.c). We don't do this, so can end up with a 
      Z_BUF_ERROR at the end of a stream when zlib has completed inflation
      and there's no more input. Thats not a problem. */

Tom




reply via email to

[Prev in Thread] Current Thread [Next in Thread]