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