2003-10-15 Michael Koch <konqueror@gmx.de>

* java/util/zip/InflaterInputStream.java
	(InflaterInputStream): Renamed infl to inf and bufsize to size,
	added description to exception, check for inf == null and size < 0.

From-SVN: r72519
This commit is contained in:
Michael Koch 2003-10-15 14:02:37 +00:00 committed by Michael Koch
parent 6d98f7a8d0
commit 6c73e9f7f9
2 changed files with 16 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2003-10-15 Michael Koch <konqueror@gmx.de>
* java/util/zip/InflaterInputStream.java
(InflaterInputStream): Renamed infl to inf and bufsize to size,
added description to exception, check for inf == null and size < 0.
2003-10-15 Michael Koch <konqueror@gmx.de>
* java/text/AttributedCharacterIterator.java,

View File

@ -70,15 +70,21 @@ public class InflaterInputStream extends FilterInputStream
this (in, infl, 512);
}
public InflaterInputStream (InputStream in, Inflater infl, int bufsize)
public InflaterInputStream (InputStream in, Inflater inf, int size)
{
super (in);
if (in == null)
throw new NullPointerException();
throw new NullPointerException ("in may not be null");
if (inf == null)
throw new NullPointerException ("inf may not be null");
this.inf = infl;
this.buf = new byte[bufsize];
if (size < 0)
throw new IllegalArgumentException ("size may not be negative");
this.inf = inf;
this.buf = new byte [size];
}
public int read () throws IOException