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:
parent
2f59c8eb4b
commit
309bf2960a
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue