Check this.len, not len, when determining if there is no more input data.
From-SVN: r37847
This commit is contained in:
parent
d02bc1fb25
commit
db45aaa691
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ public class InflaterInputStream extends FilterInputStream
|
|||
count = inf.inflate(buf, off, len);
|
||||
if (count == 0)
|
||||
{
|
||||
if (len == -1)
|
||||
if (this.len == -1)
|
||||
return -1; // Couldn't get any more data to feed to the Inflater
|
||||
if (inf.needsDictionary())
|
||||
throw new ZipException ("Inflater needs Dictionary");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue