1 \feffClazz.load (["java.io.InputStream"], "java.io.SequenceInputStream", ["java.lang.Error", "$.IndexOutOfBoundsException", "$.NullPointerException", "java.util.Vector"], function () {
2 c$ = Clazz.decorateAsClass (function () {
5 Clazz.instantialize (this, arguments);
6 }, java.io, "SequenceInputStream", java.io.InputStream);
7 Clazz.makeConstructor (c$,
9 Clazz.superConstructor (this, java.io.SequenceInputStream, []);
14 if (Clazz.exceptionOf (ex, java.io.IOException)) {
15 throw new Error ("panic");
20 }, "java.util.Enumeration");
21 Clazz.makeConstructor (c$,
23 Clazz.superConstructor (this, java.io.SequenceInputStream, []);
24 var v = new java.util.Vector (2);
27 this.e = v.elements ();
31 if (Clazz.exceptionOf (ex, java.io.IOException)) {
32 throw new Error ("panic");
37 }, "java.io.InputStream,java.io.InputStream");
38 Clazz.defineMethod (c$, "nextStream",
40 if (this.$in != null) {
42 }if (this.e.hasMoreElements ()) {
43 this.$in = this.e.nextElement ();
44 if (this.$in == null) throw new NullPointerException ();
45 } else this.$in = null;
47 Clazz.defineMethod (c$, "available",
49 if (this.$in == null) {
51 }return this.$in.available ();
53 Clazz.defineMethod (c$, "readByteAsInt",
55 if (this.$in == null) {
57 }var c = this.$in.readByteAsInt ();
60 return this.readByteAsInt ();
63 Clazz.defineMethod (c$, "read",
64 function (b, off, len) {
65 if (this.$in == null) {
67 } else if (b == null) {
68 throw new NullPointerException ();
69 } else if (off < 0 || len < 0 || len > b.length - off) {
70 throw new IndexOutOfBoundsException ();
71 } else if (len == 0) {
73 }var n = this.$in.read (b, off, len);
76 return this.read (b, off, len);
79 Clazz.defineMethod (c$, "close",
83 } while (this.$in != null);