Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / JU / Deflater.js
index ee8fe3d..a49f73f 100644 (file)
@@ -1,62 +1,62 @@
-Clazz.declarePackage ("JU");\r
-Clazz.load (["JU.ZStream"], "JU.Deflater", ["JU.Deflate"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.$finished = false;\r
-Clazz.instantialize (this, arguments);\r
-}, JU, "Deflater", JU.ZStream);\r
-Clazz.defineMethod (c$, "init", \r
-function (level, bits, nowrap) {\r
-if (bits == 0) bits = 15;\r
-this.$finished = false;\r
-this.setAdler32 ();\r
-this.dstate =  new JU.Deflate (this);\r
-this.dstate.deflateInit2 (level, nowrap ? -bits : bits);\r
-return this;\r
-}, "~N,~N,~B");\r
-Clazz.overrideMethod (c$, "deflate", \r
-function (flush) {\r
-if (this.dstate == null) {\r
-return -2;\r
-}var ret = this.dstate.deflate (flush);\r
-if (ret == 1) this.$finished = true;\r
-return ret;\r
-}, "~N");\r
-Clazz.overrideMethod (c$, "end", \r
-function () {\r
-this.$finished = true;\r
-if (this.dstate == null) return -2;\r
-var ret = this.dstate.deflateEnd ();\r
-this.dstate = null;\r
-this.free ();\r
-return ret;\r
-});\r
-Clazz.defineMethod (c$, "params", \r
-function (level, strategy) {\r
-if (this.dstate == null) return -2;\r
-return this.dstate.deflateParams (level, strategy);\r
-}, "~N,~N");\r
-Clazz.defineMethod (c$, "setDictionary", \r
-function (dictionary, dictLength) {\r
-if (this.dstate == null) return -2;\r
-return this.dstate.deflateSetDictionary (dictionary, dictLength);\r
-}, "~A,~N");\r
-Clazz.overrideMethod (c$, "finished", \r
-function () {\r
-return this.$finished;\r
-});\r
-Clazz.defineMethod (c$, "finish", \r
-function () {\r
-});\r
-Clazz.defineMethod (c$, "getBytesRead", \r
-function () {\r
-return this.dstate.getBytesRead ();\r
-});\r
-Clazz.defineMethod (c$, "getBytesWritten", \r
-function () {\r
-return this.dstate.getBytesWritten ();\r
-});\r
-Clazz.defineStatics (c$,\r
-"MAX_WBITS", 15,\r
-"Z_STREAM_END", 1,\r
-"$Z_STREAM_ERROR", -2);\r
-});\r
+Clazz.declarePackage ("JU");
+Clazz.load (["JU.ZStream"], "JU.Deflater", ["JU.Deflate"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.$finished = false;
+Clazz.instantialize (this, arguments);
+}, JU, "Deflater", JU.ZStream);
+Clazz.defineMethod (c$, "init", 
+function (level, bits, nowrap) {
+if (bits == 0) bits = 15;
+this.$finished = false;
+this.setAdler32 ();
+this.dstate =  new JU.Deflate (this);
+this.dstate.deflateInit2 (level, nowrap ? -bits : bits);
+return this;
+}, "~N,~N,~B");
+Clazz.overrideMethod (c$, "deflate", 
+function (flush) {
+if (this.dstate == null) {
+return -2;
+}var ret = this.dstate.deflate (flush);
+if (ret == 1) this.$finished = true;
+return ret;
+}, "~N");
+Clazz.overrideMethod (c$, "end", 
+function () {
+this.$finished = true;
+if (this.dstate == null) return -2;
+var ret = this.dstate.deflateEnd ();
+this.dstate = null;
+this.free ();
+return ret;
+});
+Clazz.defineMethod (c$, "params", 
+function (level, strategy) {
+if (this.dstate == null) return -2;
+return this.dstate.deflateParams (level, strategy);
+}, "~N,~N");
+Clazz.defineMethod (c$, "setDictionary", 
+function (dictionary, dictLength) {
+if (this.dstate == null) return -2;
+return this.dstate.deflateSetDictionary (dictionary, dictLength);
+}, "~A,~N");
+Clazz.overrideMethod (c$, "finished", 
+function () {
+return this.$finished;
+});
+Clazz.defineMethod (c$, "finish", 
+function () {
+});
+Clazz.defineMethod (c$, "getBytesRead", 
+function () {
+return this.dstate.getBytesRead ();
+});
+Clazz.defineMethod (c$, "getBytesWritten", 
+function () {
+return this.dstate.getBytesWritten ();
+});
+Clazz.defineStatics (c$,
+"MAX_WBITS", 15,
+"Z_STREAM_END", 1,
+"$Z_STREAM_ERROR", -2);
+});