InflaterInputStream.java (read(byte[],int,int)): return -1 when fill() has no more data for the Inflater.

* java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
	return -1 when fill() has no more data for the Inflater.

From-SVN: r35963
This commit is contained in:
Mark Wielaard 2000-08-24 22:48:12 +00:00 committed by Mark Wielaard
parent 2f59c8eb4b
commit 309bf2960a
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2000-08-23 Mark Wielaard <mark@klomp.org>
* java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
return -1 when fill() has no more data for the Inflater.
2000-08-23 Mark Wielaard <mark@klomp.org>
* java/io/PrintWriter.java (print(String)): Don't catch IOException,

View file

@ -65,6 +65,8 @@ public class InflaterInputStream extends FilterInputStream
return -1;
if (inf.needsInput())
fill ();
if (this.len == -1)
return -1; // Couldn't get any more data to feed to the Inflater
if (inf.needsDictionary())
return -1;
try