Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / io / SequenceInputStream.js
index 171447f..c92bb1d 100644 (file)
@@ -1,85 +1,85 @@
-\feffClazz.load (["java.io.InputStream"], "java.io.SequenceInputStream", ["java.lang.Error", "$.IndexOutOfBoundsException", "$.NullPointerException", "java.util.Vector"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.e = null;\r
-this.$in = null;\r
-Clazz.instantialize (this, arguments);\r
-}, java.io, "SequenceInputStream", java.io.InputStream);\r
-Clazz.makeConstructor (c$, \r
-function (e) {\r
-Clazz.superConstructor (this, java.io.SequenceInputStream, []);\r
-this.e = e;\r
-try {\r
-this.nextStream ();\r
-} catch (ex) {\r
-if (Clazz.exceptionOf (ex, java.io.IOException)) {\r
-throw  new Error ("panic");\r
-} else {\r
-throw ex;\r
-}\r
-}\r
-}, "java.util.Enumeration");\r
-Clazz.makeConstructor (c$, \r
-function (s1, s2) {\r
-Clazz.superConstructor (this, java.io.SequenceInputStream, []);\r
-var v =  new java.util.Vector (2);\r
-v.addElement (s1);\r
-v.addElement (s2);\r
-this.e = v.elements ();\r
-try {\r
-this.nextStream ();\r
-} catch (ex) {\r
-if (Clazz.exceptionOf (ex, java.io.IOException)) {\r
-throw  new Error ("panic");\r
-} else {\r
-throw ex;\r
-}\r
-}\r
-}, "java.io.InputStream,java.io.InputStream");\r
-Clazz.defineMethod (c$, "nextStream", \r
-function () {\r
-if (this.$in != null) {\r
-this.$in.close ();\r
-}if (this.e.hasMoreElements ()) {\r
-this.$in = this.e.nextElement ();\r
-if (this.$in == null) throw  new NullPointerException ();\r
-} else this.$in = null;\r
-});\r
-Clazz.defineMethod (c$, "available", \r
-function () {\r
-if (this.$in == null) {\r
-return 0;\r
-}return this.$in.available ();\r
-});\r
-Clazz.defineMethod (c$, "readByteAsInt", \r
-function () {\r
-if (this.$in == null) {\r
-return -1;\r
-}var c = this.$in.readByteAsInt ();\r
-if (c == -1) {\r
-this.nextStream ();\r
-return this.readByteAsInt ();\r
-}return c;\r
-});\r
-Clazz.defineMethod (c$, "read", \r
-function (b, off, len) {\r
-if (this.$in == null) {\r
-return -1;\r
-} else if (b == null) {\r
-throw  new NullPointerException ();\r
-} else if (off < 0 || len < 0 || len > b.length - off) {\r
-throw  new IndexOutOfBoundsException ();\r
-} else if (len == 0) {\r
-return 0;\r
-}var n = this.$in.read (b, off, len);\r
-if (n <= 0) {\r
-this.nextStream ();\r
-return this.read (b, off, len);\r
-}return n;\r
-}, "~A,~N,~N");\r
-Clazz.defineMethod (c$, "close", \r
-function () {\r
-do {\r
-this.nextStream ();\r
-} while (this.$in != null);\r
-});\r
-});\r
+\feffClazz.load (["java.io.InputStream"], "java.io.SequenceInputStream", ["java.lang.Error", "$.IndexOutOfBoundsException", "$.NullPointerException", "java.util.Vector"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.e = null;
+this.$in = null;
+Clazz.instantialize (this, arguments);
+}, java.io, "SequenceInputStream", java.io.InputStream);
+Clazz.makeConstructor (c$, 
+function (e) {
+Clazz.superConstructor (this, java.io.SequenceInputStream, []);
+this.e = e;
+try {
+this.nextStream ();
+} catch (ex) {
+if (Clazz.exceptionOf (ex, java.io.IOException)) {
+throw  new Error ("panic");
+} else {
+throw ex;
+}
+}
+}, "java.util.Enumeration");
+Clazz.makeConstructor (c$, 
+function (s1, s2) {
+Clazz.superConstructor (this, java.io.SequenceInputStream, []);
+var v =  new java.util.Vector (2);
+v.addElement (s1);
+v.addElement (s2);
+this.e = v.elements ();
+try {
+this.nextStream ();
+} catch (ex) {
+if (Clazz.exceptionOf (ex, java.io.IOException)) {
+throw  new Error ("panic");
+} else {
+throw ex;
+}
+}
+}, "java.io.InputStream,java.io.InputStream");
+Clazz.defineMethod (c$, "nextStream", 
+function () {
+if (this.$in != null) {
+this.$in.close ();
+}if (this.e.hasMoreElements ()) {
+this.$in = this.e.nextElement ();
+if (this.$in == null) throw  new NullPointerException ();
+} else this.$in = null;
+});
+Clazz.defineMethod (c$, "available", 
+function () {
+if (this.$in == null) {
+return 0;
+}return this.$in.available ();
+});
+Clazz.defineMethod (c$, "readByteAsInt", 
+function () {
+if (this.$in == null) {
+return -1;
+}var c = this.$in.readByteAsInt ();
+if (c == -1) {
+this.nextStream ();
+return this.readByteAsInt ();
+}return c;
+});
+Clazz.defineMethod (c$, "read", 
+function (b, off, len) {
+if (this.$in == null) {
+return -1;
+} else if (b == null) {
+throw  new NullPointerException ();
+} else if (off < 0 || len < 0 || len > b.length - off) {
+throw  new IndexOutOfBoundsException ();
+} else if (len == 0) {
+return 0;
+}var n = this.$in.read (b, off, len);
+if (n <= 0) {
+this.nextStream ();
+return this.read (b, off, len);
+}return n;
+}, "~A,~N,~N");
+Clazz.defineMethod (c$, "close", 
+function () {
+do {
+this.nextStream ();
+} while (this.$in != null);
+});
+});