InflaterInputStream.java (read): Return zero when len is zero.
* java/util/zip/InflaterInputStream.java (read): Return zero when len is zero. From-SVN: r62872
This commit is contained in:
parent
42f86c4856
commit
530ee84d75
2 changed files with 8 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/* InflaterInputStream.java - Input stream filter for decompressing
|
||||
Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
|
@ -90,6 +90,8 @@ public class InflaterInputStream extends FilterInputStream
|
|||
{
|
||||
if (inf == null)
|
||||
throw new IOException ("stream closed");
|
||||
if (len == 0)
|
||||
return 0;
|
||||
if (inf.finished())
|
||||
return -1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue