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:
parent
172c38bb69
commit
d02bc1fb25
4 changed files with 18 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue