Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / swingjs / j2s / jssun / misc / IOUtils.js
index 2b60be6..1ded1b5 100644 (file)
@@ -1,29 +1,29 @@
-Clazz.declarePackage ("jssun.misc");\r
-Clazz.load (null, "jssun.misc.IOUtils", ["java.io.EOFException", "java.util.Arrays"], function () {\r
-c$ = Clazz.declareType (jssun.misc, "IOUtils");\r
-c$.readFully = Clazz.defineMethod (c$, "readFully", \r
-function (is, length, readAll) {\r
-var output =  Clazz.newByteArray (-1, []);\r
-if (length == -1) length = 2147483647;\r
-var pos = 0;\r
-while (pos < length) {\r
-var bytesToRead;\r
-if (pos >= output.length) {\r
-bytesToRead = Math.min (length - pos, output.length + 1024);\r
-if (output.length < pos + bytesToRead) {\r
-output = java.util.Arrays.copyOf (output, pos + bytesToRead);\r
-}} else {\r
-bytesToRead = output.length - pos;\r
-}var cc = is.read (output, pos, bytesToRead);\r
-if (cc < 0) {\r
-if (readAll && length != 2147483647) {\r
-throw  new java.io.EOFException ("Detect premature EOF");\r
-} else {\r
-if (output.length != pos) {\r
-output = java.util.Arrays.copyOf (output, pos);\r
-}break;\r
-}}pos += cc;\r
-}\r
-return output;\r
-}, "java.io.InputStream,~N,~B");\r
-});\r
+Clazz.declarePackage ("jssun.misc");
+Clazz.load (null, "jssun.misc.IOUtils", ["java.io.EOFException", "java.util.Arrays"], function () {
+c$ = Clazz.declareType (jssun.misc, "IOUtils");
+c$.readFully = Clazz.defineMethod (c$, "readFully", 
+function (is, length, readAll) {
+var output =  Clazz.newByteArray (-1, []);
+if (length == -1) length = 2147483647;
+var pos = 0;
+while (pos < length) {
+var bytesToRead;
+if (pos >= output.length) {
+bytesToRead = Math.min (length - pos, output.length + 1024);
+if (output.length < pos + bytesToRead) {
+output = java.util.Arrays.copyOf (output, pos + bytesToRead);
+}} else {
+bytesToRead = output.length - pos;
+}var cc = is.read (output, pos, bytesToRead);
+if (cc < 0) {
+if (readAll && length != 2147483647) {
+throw  new java.io.EOFException ("Detect premature EOF");
+} else {
+if (output.length != pos) {
+output = java.util.Arrays.copyOf (output, pos);
+}break;
+}}pos += cc;
+}
+return output;
+}, "java.io.InputStream,~N,~B");
+});