JAL-1807 still testing
[jalviewjs.git] / bin / javajs / img / ImageEncoder.js
index a0fc4c0..79e2086 100644 (file)
@@ -1,41 +1,41 @@
-Clazz.declarePackage ("javajs.img");
-Clazz.load (["javajs.api.GenericImageEncoder"], "javajs.img.ImageEncoder", ["java.lang.Boolean"], function () {
-c$ = Clazz.decorateAsClass (function () {
-this.out = null;
-this.width = -1;
-this.height = -1;
-this.quality = -1;
-this.date = null;
-this.logging = false;
-this.doClose = true;
-this.pixels = null;
-Clazz.instantialize (this, arguments);
-}, javajs.img, "ImageEncoder", null, javajs.api.GenericImageEncoder);
-Clazz.overrideMethod (c$, "createImage", 
-function (type, out, params) {
-this.out = out;
-this.logging = (Boolean.TRUE === params.get ("logging"));
-this.width = (params.get ("imageWidth")).intValue ();
-this.height = (params.get ("imageHeight")).intValue ();
-this.pixels = params.get ("imagePixels");
-this.date = params.get ("date");
-var q = params.get ("quality");
-this.quality = (q == null ? -1 : q.intValue ());
-this.setParams (params);
-this.generate ();
-this.close ();
-return this.doClose;
-}, "~S,javajs.util.OC,java.util.Map");
-Clazz.defineMethod (c$, "putString", 
-function (s) {
-var b = s.getBytes ();
-this.out.write (b, 0, b.length);
-}, "~S");
-Clazz.defineMethod (c$, "putByte", 
-function (b) {
-this.out.writeByteAsInt (b);
-}, "~N");
-Clazz.defineMethod (c$, "close", 
-function () {
-});
-});
+Clazz.declarePackage ("javajs.img");\r
+Clazz.load (["javajs.api.GenericImageEncoder"], "javajs.img.ImageEncoder", ["java.lang.Boolean"], function () {\r
+c$ = Clazz.decorateAsClass (function () {\r
+this.out = null;\r
+this.width = -1;\r
+this.height = -1;\r
+this.quality = -1;\r
+this.date = null;\r
+this.logging = false;\r
+this.doClose = true;\r
+this.pixels = null;\r
+Clazz.instantialize (this, arguments);\r
+}, javajs.img, "ImageEncoder", null, javajs.api.GenericImageEncoder);\r
+Clazz.overrideMethod (c$, "createImage", \r
+function (type, out, params) {\r
+this.out = out;\r
+this.logging = (Boolean.TRUE === params.get ("logging"));\r
+this.width = (params.get ("imageWidth")).intValue ();\r
+this.height = (params.get ("imageHeight")).intValue ();\r
+this.pixels = params.get ("imagePixels");\r
+this.date = params.get ("date");\r
+var q = params.get ("quality");\r
+this.quality = (q == null ? -1 : q.intValue ());\r
+this.setParams (params);\r
+this.generate ();\r
+this.close ();\r
+return this.doClose;\r
+}, "~S,javajs.util.OC,java.util.Map");\r
+Clazz.defineMethod (c$, "putString", \r
+function (s) {\r
+var b = s.getBytes ();\r
+this.out.write (b, 0, b.length);\r
+}, "~S");\r
+Clazz.defineMethod (c$, "putByte", \r
+function (b) {\r
+this.out.writeByteAsInt (b);\r
+}, "~N");\r
+Clazz.defineMethod (c$, "close", \r
+function () {\r
+});\r
+});\r