JAL-1807 still testing
[jalviewjs.git] / bin / javajs / img / Jpg64Encoder.js
index c8eb5d1..2ef2678 100644 (file)
@@ -1,23 +1,23 @@
-Clazz.declarePackage ("javajs.img");
-Clazz.load (["javajs.img.JpgEncoder"], "javajs.img.Jpg64Encoder", ["javajs.util.Base64"], function () {
-c$ = Clazz.decorateAsClass (function () {
-this.outTemp = null;
-Clazz.instantialize (this, arguments);
-}, javajs.img, "Jpg64Encoder", javajs.img.JpgEncoder);
-Clazz.defineMethod (c$, "setParams", 
-function (params) {
-this.defaultQuality = 75;
-this.outTemp = params.remove ("outputChannelTemp");
-Clazz.superCall (this, javajs.img.Jpg64Encoder, "setParams", [params]);
-}, "java.util.Map");
-Clazz.defineMethod (c$, "generate", 
-function () {
-var out0 = this.out;
-this.out = this.outTemp;
-Clazz.superCall (this, javajs.img.Jpg64Encoder, "generate", []);
-var bytes = javajs.util.Base64.getBytes64 (this.out.toByteArray ());
-this.outTemp = null;
-this.out = out0;
-this.out.write (bytes, 0, bytes.length);
-});
-});
+Clazz.declarePackage ("javajs.img");\r
+Clazz.load (["javajs.img.JpgEncoder"], "javajs.img.Jpg64Encoder", ["javajs.util.Base64"], function () {\r
+c$ = Clazz.decorateAsClass (function () {\r
+this.outTemp = null;\r
+Clazz.instantialize (this, arguments);\r
+}, javajs.img, "Jpg64Encoder", javajs.img.JpgEncoder);\r
+Clazz.defineMethod (c$, "setParams", \r
+function (params) {\r
+this.defaultQuality = 75;\r
+this.outTemp = params.remove ("outputChannelTemp");\r
+Clazz.superCall (this, javajs.img.Jpg64Encoder, "setParams", [params]);\r
+}, "java.util.Map");\r
+Clazz.defineMethod (c$, "generate", \r
+function () {\r
+var out0 = this.out;\r
+this.out = this.outTemp;\r
+Clazz.superCall (this, javajs.img.Jpg64Encoder, "generate", []);\r
+var bytes = javajs.util.Base64.getBytes64 (this.out.toByteArray ());\r
+this.outTemp = null;\r
+this.out = out0;\r
+this.out.write (bytes, 0, bytes.length);\r
+});\r
+});\r