JAL-1807 still testing
[jalviewjs.git] / bin / javajs / util / LimitedLineReader.js
index 95d0741..c8c7764 100644 (file)
@@ -1,33 +1,33 @@
-Clazz.declarePackage ("javajs.util");
-c$ = Clazz.decorateAsClass (function () {
-this.buf = null;
-this.cchBuf = 0;
-this.ichCurrent = 0;
-Clazz.instantialize (this, arguments);
-}, javajs.util, "LimitedLineReader");
-Clazz.makeConstructor (c$, 
-function (bufferedReader, readLimit) {
-bufferedReader.mark (readLimit + 1);
-this.buf =  Clazz.newCharArray (readLimit, '\0');
-this.cchBuf = Math.max (bufferedReader.read (this.buf, 0, readLimit), 0);
-this.ichCurrent = 0;
-bufferedReader.reset ();
-}, "java.io.BufferedReader,~N");
-Clazz.defineMethod (c$, "getHeader", 
-function (n) {
-return (n == 0 ?  String.instantialize (this.buf) :  String.instantialize (this.buf, 0, Math.min (this.cchBuf, n)));
-}, "~N");
-Clazz.defineMethod (c$, "readLineWithNewline", 
-function () {
-while (this.ichCurrent < this.cchBuf) {
-var ichBeginningOfLine = this.ichCurrent;
-var ch = String.fromCharCode (0);
-while (this.ichCurrent < this.cchBuf && (ch = this.buf[this.ichCurrent++]) != '\r' && ch != '\n') {
-}
-if (ch == '\r' && this.ichCurrent < this.cchBuf && this.buf[this.ichCurrent] == '\n') ++this.ichCurrent;
-var cchLine = this.ichCurrent - ichBeginningOfLine;
-if (this.buf[ichBeginningOfLine] == '#') continue;
-return  String.instantialize (this.buf, ichBeginningOfLine, cchLine);
-}
-return "";
-});
+Clazz.declarePackage ("javajs.util");\r
+c$ = Clazz.decorateAsClass (function () {\r
+this.buf = null;\r
+this.cchBuf = 0;\r
+this.ichCurrent = 0;\r
+Clazz.instantialize (this, arguments);\r
+}, javajs.util, "LimitedLineReader");\r
+Clazz.makeConstructor (c$, \r
+function (bufferedReader, readLimit) {\r
+bufferedReader.mark (readLimit + 1);\r
+this.buf =  Clazz.newCharArray (readLimit, '\0');\r
+this.cchBuf = Math.max (bufferedReader.read (this.buf, 0, readLimit), 0);\r
+this.ichCurrent = 0;\r
+bufferedReader.reset ();\r
+}, "java.io.BufferedReader,~N");\r
+Clazz.defineMethod (c$, "getHeader", \r
+function (n) {\r
+return (n == 0 ?  String.instantialize (this.buf) :  String.instantialize (this.buf, 0, Math.min (this.cchBuf, n)));\r
+}, "~N");\r
+Clazz.defineMethod (c$, "readLineWithNewline", \r
+function () {\r
+while (this.ichCurrent < this.cchBuf) {\r
+var ichBeginningOfLine = this.ichCurrent;\r
+var ch = String.fromCharCode (0);\r
+while (this.ichCurrent < this.cchBuf && (ch = this.buf[this.ichCurrent++]) != '\r' && ch != '\n') {\r
+}\r
+if (ch == '\r' && this.ichCurrent < this.cchBuf && this.buf[this.ichCurrent] == '\n') ++this.ichCurrent;\r
+var cchLine = this.ichCurrent - ichBeginningOfLine;\r
+if (this.buf[ichBeginningOfLine] == '#') continue;\r
+return  String.instantialize (this.buf, ichBeginningOfLine, cchLine);\r
+}\r
+return "";\r
+});\r