Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / io / FilterOutputStream.js
index 343089f..4299fff 100644 (file)
@@ -1,37 +1,37 @@
-Clazz.load (["java.io.OutputStream"], "java.io.FilterOutputStream", ["java.lang.IndexOutOfBoundsException"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.out = null;\r
-Clazz.instantialize (this, arguments);\r
-}, java.io, "FilterOutputStream", java.io.OutputStream);\r
-Clazz.defineMethod (c$, "jzSetFOS", \r
-function (out) {\r
-this.out = out;\r
-}, "java.io.OutputStream");\r
-Clazz.defineMethod (c$, "writeByteAsInt", \r
-function (b) {\r
-this.out.writeByteAsInt (b);\r
-}, "~N");\r
-Clazz.defineMethod (c$, "write", \r
-function (b, off, len) {\r
-if ((off | len | (b.length - (len + off)) | (off + len)) < 0) throw  new IndexOutOfBoundsException ();\r
-for (var i = 0; i < len; i++) {\r
-this.writeByteAsInt (b[off + i]);\r
-}\r
-}, "~A,~N,~N");\r
-Clazz.defineMethod (c$, "flush", \r
-function () {\r
-this.out.flush ();\r
-});\r
-Clazz.defineMethod (c$, "close", \r
-function () {\r
-try {\r
-this.flush ();\r
-} catch (ignored) {\r
-if (Clazz.exceptionOf (ignored, java.io.IOException)) {\r
-} else {\r
-throw ignored;\r
-}\r
-}\r
-this.out.close ();\r
-});\r
-});\r
+Clazz.load (["java.io.OutputStream"], "java.io.FilterOutputStream", ["java.lang.IndexOutOfBoundsException"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.out = null;
+Clazz.instantialize (this, arguments);
+}, java.io, "FilterOutputStream", java.io.OutputStream);
+Clazz.defineMethod (c$, "jzSetFOS", 
+function (out) {
+this.out = out;
+}, "java.io.OutputStream");
+Clazz.defineMethod (c$, "writeByteAsInt", 
+function (b) {
+this.out.writeByteAsInt (b);
+}, "~N");
+Clazz.defineMethod (c$, "write", 
+function (b, off, len) {
+if ((off | len | (b.length - (len + off)) | (off + len)) < 0) throw  new IndexOutOfBoundsException ();
+for (var i = 0; i < len; i++) {
+this.writeByteAsInt (b[off + i]);
+}
+}, "~A,~N,~N");
+Clazz.defineMethod (c$, "flush", 
+function () {
+this.out.flush ();
+});
+Clazz.defineMethod (c$, "close", 
+function () {
+try {
+this.flush ();
+} catch (ignored) {
+if (Clazz.exceptionOf (ignored, java.io.IOException)) {
+} else {
+throw ignored;
+}
+}
+this.out.close ();
+});
+});