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