X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2FJU%2FListDataReader.js;h=4a6988ce2496da8e5b51f5e47f5ec433543a35b6;hp=c69719e45ef82b98e68c0cec9b57b46dc7461fc5;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/JU/ListDataReader.js b/site/j2s/JU/ListDataReader.js index c69719e..4a6988c 100644 --- a/site/j2s/JU/ListDataReader.js +++ b/site/j2s/JU/ListDataReader.js @@ -1,31 +1,31 @@ -Clazz.declarePackage ("JU"); -Clazz.load (["JU.DataReader"], "JU.ListDataReader", null, function () { -c$ = Clazz.decorateAsClass (function () { -this.data = null; -this.pt = 0; -this.len = 0; -Clazz.instantialize (this, arguments); -}, JU, "ListDataReader", JU.DataReader); -Clazz.overrideMethod (c$, "setData", -function (data) { -this.data = data; -this.len = this.data.size (); -return this; -}, "~O"); -Clazz.overrideMethod (c$, "read", -function (buf, off, len) { -return this.readBuf (buf, off, len); -}, "~A,~N,~N"); -Clazz.overrideMethod (c$, "readLine", -function () { -return (this.pt < this.len ? this.data.get (this.pt++) : null); -}); -Clazz.defineMethod (c$, "mark", -function (ptr) { -this.ptMark = this.pt; -}, "~N"); -Clazz.overrideMethod (c$, "reset", -function () { -this.pt = this.ptMark; -}); -}); +Clazz.declarePackage ("JU"); +Clazz.load (["JU.DataReader"], "JU.ListDataReader", null, function () { +c$ = Clazz.decorateAsClass (function () { +this.data = null; +this.pt = 0; +this.len = 0; +Clazz.instantialize (this, arguments); +}, JU, "ListDataReader", JU.DataReader); +Clazz.overrideMethod (c$, "setData", +function (data) { +this.data = data; +this.len = this.data.size (); +return this; +}, "~O"); +Clazz.overrideMethod (c$, "read", +function (buf, off, len) { +return this.readBuf (buf, off, len); +}, "~A,~N,~N"); +Clazz.overrideMethod (c$, "readLine", +function () { +return (this.pt < this.len ? this.data.get (this.pt++) : null); +}); +Clazz.defineMethod (c$, "mark", +function (ptr) { +this.ptMark = this.pt; +}, "~N"); +Clazz.overrideMethod (c$, "reset", +function () { +this.pt = this.ptMark; +}); +});