Commit 6c73e9f7 by Michael Koch Committed by Michael Koch

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
parent 6d98f7a8
2003-10-15 Michael Koch <konqueror@gmx.de> 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, * java/text/AttributedCharacterIterator.java,
java/text/CharacterIterator.java: Reformated. java/text/CharacterIterator.java: Reformated.
......
...@@ -70,15 +70,21 @@ public class InflaterInputStream extends FilterInputStream ...@@ -70,15 +70,21 @@ public class InflaterInputStream extends FilterInputStream
this (in, infl, 512); this (in, infl, 512);
} }
public InflaterInputStream (InputStream in, Inflater infl, int bufsize) public InflaterInputStream (InputStream in, Inflater inf, int size)
{ {
super (in); super (in);
if (in == null) 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");
if (size < 0)
throw new IllegalArgumentException ("size may not be negative");
this.inf = infl; this.inf = inf;
this.buf = new byte[bufsize]; this.buf = new byte [size];
} }
public int read () throws IOException public int read () throws IOException
......
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