1 Clazz.declarePackage ("JU");
2 Clazz.load (["JU.ZStream"], "JU.Inflater", ["JU.Inflate"], function () {
3 c$ = Clazz.declareType (JU, "Inflater", JU.ZStream);
4 Clazz.defineMethod (c$, "init",
8 this.istate = new JU.Inflate (this);
9 this.istate.inflateInit (nowrap ? -w : w);
12 Clazz.overrideMethod (c$, "inflate",
14 if (this.istate == null) return -2;
15 var ret = this.istate.inflate (f);
18 Clazz.overrideMethod (c$, "end",
20 if (this.istate == null) return -2;
21 var ret = this.istate.inflateEnd ();
24 Clazz.defineMethod (c$, "sync",
26 if (this.istate == null) return -2;
27 return this.istate.inflateSync ();
29 Clazz.defineMethod (c$, "syncPoint",
31 if (this.istate == null) return -2;
32 return this.istate.inflateSyncPoint ();
34 Clazz.defineMethod (c$, "setDictionary",
35 function (dictionary, dictLength) {
36 if (this.istate == null) return -2;
37 return this.istate.inflateSetDictionary (dictionary, dictLength);
39 Clazz.overrideMethod (c$, "finished",
41 return this.istate.mode == 12;
43 Clazz.defineMethod (c$, "reset",
46 if (this.istate != null) this.istate.reset ();
48 Clazz.defineStatics (c$,
51 "$Z_STREAM_ERROR", -2);