Commit 530ee84d by Mark Wielaard Committed by Mark Wielaard

InflaterInputStream.java (read): Return zero when len is zero.

       * java/util/zip/InflaterInputStream.java (read): Return zero when len
       is zero.

From-SVN: r62872
parent 42f86c48
2003-02-13 Mark Wielaard <mark@klomp.org>
* java/util/zip/InflaterInputStream.java (read): Return zero when len
is zero.
2003-02-13 Mark Wielaard <mark@klomp.org>
* java/io/BufferedOutputStream.java (write(int)): Only flush when
next byte cannot be buffered.
......
/* 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment