1 Clazz.declarePackage ("JU");
\r
2 Clazz.load (["JU.DataReader"], "JU.ListDataReader", null, function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
7 Clazz.instantialize (this, arguments);
\r
8 }, JU, "ListDataReader", JU.DataReader);
\r
9 Clazz.overrideMethod (c$, "setData",
\r
12 this.len = this.data.size ();
\r
15 Clazz.overrideMethod (c$, "read",
\r
16 function (buf, off, len) {
\r
17 return this.readBuf (buf, off, len);
\r
19 Clazz.overrideMethod (c$, "readLine",
\r
21 return (this.pt < this.len ? this.data.get (this.pt++) : null);
\r
23 Clazz.defineMethod (c$, "mark",
\r
25 this.ptMark = this.pt;
\r
27 Clazz.overrideMethod (c$, "reset",
\r
29 this.pt = this.ptMark;
\r