1 Clazz.declarePackage ("java.util.zip");
\r
2 Clazz.load (["java.io.FilterInputStream"], "java.util.zip.CheckedInputStream", null, function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
5 Clazz.instantialize (this, arguments);
\r
6 }, java.util.zip, "CheckedInputStream", java.io.FilterInputStream);
\r
7 Clazz.defineMethod (c$, "set",
\r
13 Clazz.overrideMethod (c$, "readByteAsInt",
\r
15 var b = this.$in.readByteAsInt ();
\r
17 this.cksum.updateByteAsInt (b);
\r
20 Clazz.overrideMethod (c$, "read",
\r
21 function (buf, off, len) {
\r
22 len = this.$in.read (buf, off, len);
\r
24 this.cksum.update (buf, off, len);
\r
27 Clazz.overrideMethod (c$, "skip",
\r
29 var buf = Clazz.newByteArray (512, 0);
\r
32 var len = n - total;
\r
33 len = this.read (buf, 0, len < buf.length ? len : buf.length);
\r
40 Clazz.defineMethod (c$, "getChecksum",
\r