InflaterInputStream (read): Don't return -1 unless the infate() call didn't deliver...
authorBryce McKinlay <bryce@albatross.co.nz>
Wed, 29 Nov 2000 10:06:03 +0000 (10:06 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Wed, 29 Nov 2000 10:06:03 +0000 (10:06 +0000)
commitd02bc1fb258dcb43215c0d671237c0dbbb74c4b9
tree2faa9e8f99525720284bd59f9288fb1d62c941dc
parent172c38bb69afc32eae4f6f009d1c5edb506b6476
InflaterInputStream (read): Don't return -1 unless the infate() call didn't deliver any output.

* java/util/zip/InflaterInputStream (read): Don't return -1 unless
the infate() call didn't deliver any output. Throw a ZipException if
the needsDictionary() call returns true.
* java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
* java/io/InputStreamReader: Use the default buffer size for the
contained BufferedInputStream.

From-SVN: r37846
libjava/ChangeLog
libjava/java/io/ByteArrayInputStream.java
libjava/java/io/InputStreamReader.java
libjava/java/util/zip/InflaterInputStream.java