1 Clazz.load (["java.io.Closeable"], "java.io.Reader", ["java.io.IOException", "java.lang.IllegalArgumentException", "$.NullPointerException"], function () {
2 c$ = Clazz.decorateAsClass (function () {
4 this.skipBuffer = null;
5 Clazz.instantialize (this, arguments);
6 }, java.io, "Reader", null, java.io.Closeable);
7 Clazz.makeConstructor (c$,
10 throw new NullPointerException ();
13 Clazz.defineMethod (c$, "skip",
15 if (n < 0) throw new IllegalArgumentException ("skip value is negative");
16 var nn = Math.min (n, 8192);
18 if ((this.skipBuffer == null) || (this.skipBuffer.length < nn)) this.skipBuffer = Clazz.newCharArray (nn, '\0');
21 var nc = this.read (this.skipBuffer, 0, Math.min (r, nn));
27 Clazz.defineMethod (c$, "ready",
31 Clazz.defineMethod (c$, "markSupported",
35 Clazz.defineMethod (c$, "mark",
36 function (readAheadLimit) {
37 throw new java.io.IOException ("mark() not supported");
39 Clazz.defineMethod (c$, "reset",
41 throw new java.io.IOException ("reset() not supported");
43 Clazz.defineStatics (c$,
44 "MAX_SKIP_BUFFE_SIZE", 8192);