X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2FJU%2FInflater.js;h=7d17f858afac51be98af46464b3d7d19b36bbd2c;hp=35776bffd81cef2941ebca246ae38109a3395a8e;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/JU/Inflater.js b/site/j2s/JU/Inflater.js index 35776bf..7d17f85 100644 --- a/site/j2s/JU/Inflater.js +++ b/site/j2s/JU/Inflater.js @@ -1,52 +1,52 @@ -Clazz.declarePackage ("JU"); -Clazz.load (["JU.ZStream"], "JU.Inflater", ["JU.Inflate"], function () { -c$ = Clazz.declareType (JU, "Inflater", JU.ZStream); -Clazz.defineMethod (c$, "init", -function (w, nowrap) { -this.setAdler32 (); -if (w == 0) w = 15; -this.istate = new JU.Inflate (this); -this.istate.inflateInit (nowrap ? -w : w); -return this; -}, "~N,~B"); -Clazz.overrideMethod (c$, "inflate", -function (f) { -if (this.istate == null) return -2; -var ret = this.istate.inflate (f); -return ret; -}, "~N"); -Clazz.overrideMethod (c$, "end", -function () { -if (this.istate == null) return -2; -var ret = this.istate.inflateEnd (); -return ret; -}); -Clazz.defineMethod (c$, "sync", -function () { -if (this.istate == null) return -2; -return this.istate.inflateSync (); -}); -Clazz.defineMethod (c$, "syncPoint", -function () { -if (this.istate == null) return -2; -return this.istate.inflateSyncPoint (); -}); -Clazz.defineMethod (c$, "setDictionary", -function (dictionary, dictLength) { -if (this.istate == null) return -2; -return this.istate.inflateSetDictionary (dictionary, dictLength); -}, "~A,~N"); -Clazz.overrideMethod (c$, "finished", -function () { -return this.istate.mode == 12; -}); -Clazz.defineMethod (c$, "reset", -function () { -this.avail_in = 0; -if (this.istate != null) this.istate.reset (); -}); -Clazz.defineStatics (c$, -"MAX_WBITS", 15, -"DEF_WBITS", 15, -"$Z_STREAM_ERROR", -2); -}); +Clazz.declarePackage ("JU"); +Clazz.load (["JU.ZStream"], "JU.Inflater", ["JU.Inflate"], function () { +c$ = Clazz.declareType (JU, "Inflater", JU.ZStream); +Clazz.defineMethod (c$, "init", +function (w, nowrap) { +this.setAdler32 (); +if (w == 0) w = 15; +this.istate = new JU.Inflate (this); +this.istate.inflateInit (nowrap ? -w : w); +return this; +}, "~N,~B"); +Clazz.overrideMethod (c$, "inflate", +function (f) { +if (this.istate == null) return -2; +var ret = this.istate.inflate (f); +return ret; +}, "~N"); +Clazz.overrideMethod (c$, "end", +function () { +if (this.istate == null) return -2; +var ret = this.istate.inflateEnd (); +return ret; +}); +Clazz.defineMethod (c$, "sync", +function () { +if (this.istate == null) return -2; +return this.istate.inflateSync (); +}); +Clazz.defineMethod (c$, "syncPoint", +function () { +if (this.istate == null) return -2; +return this.istate.inflateSyncPoint (); +}); +Clazz.defineMethod (c$, "setDictionary", +function (dictionary, dictLength) { +if (this.istate == null) return -2; +return this.istate.inflateSetDictionary (dictionary, dictLength); +}, "~A,~N"); +Clazz.overrideMethod (c$, "finished", +function () { +return this.istate.mode == 12; +}); +Clazz.defineMethod (c$, "reset", +function () { +this.avail_in = 0; +if (this.istate != null) this.istate.reset (); +}); +Clazz.defineStatics (c$, +"MAX_WBITS", 15, +"DEF_WBITS", 15, +"$Z_STREAM_ERROR", -2); +});