Clazz.declarePackage ("J.io");
Clazz.load (["java.io.BufferedReader"], "J.io.DataReader", ["java.io.StringReader"], function () {
c$ = Clazz.decorateAsClass (function () {
this.ptMark = 0;
Clazz.instantialize (this, arguments);
}, J.io, "DataReader", java.io.BufferedReader);
Clazz.makeConstructor (c$, 
function () {
Clazz.superConstructor (this, J.io.DataReader, [ new java.io.StringReader ("")]);
});
$_M(c$, "getBufferedReader", 
function () {
return this;
});
$_M(c$, "readBuf", 
function (buf, off, len) {
var nRead = 0;
var line = this.readLine ();
if (line == null) return 0;
var linept = 0;
var linelen = line.length;
for (var i = off; i < len && linelen >= 0; i++) {
if (linept >= linelen) {
linept = 0;
buf[i] = '\n';
line = this.readLine ();
linelen = (line == null ? -1 : line.length);
} else {
buf[i] = line.charAt (linept++);
}nRead++;
}
return nRead;
}, "~A,~N,~N");
});
