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
This commit is contained in:
committed by
Bryce McKinlay
parent
172c38bb69
commit
d02bc1fb25
@@ -46,7 +46,7 @@ public class InputStreamReader extends Reader
|
||||
{
|
||||
this.in = in instanceof BufferedInputStream
|
||||
? (BufferedInputStream) in
|
||||
: new BufferedInputStream(in, 250);
|
||||
: new BufferedInputStream(in);
|
||||
/* Don't need to call super(in) here as long as the lock gets set. */
|
||||
this.lock = in;
|
||||
converter = decoder;
|
||||
|
||||
Reference in New Issue
Block a user