Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / JU / AjaxURLConnection.js
index 32322c6..7f56da3 100644 (file)
@@ -1,37 +1,37 @@
-Clazz.declarePackage ("JU");\r
-Clazz.load (["java.net.URLConnection"], "JU.AjaxURLConnection", ["JU.AU", "$.Rdr", "$.SB"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.bytesOut = null;\r
-this.postOut = "";\r
-Clazz.instantialize (this, arguments);\r
-}, JU, "AjaxURLConnection", java.net.URLConnection);\r
-Clazz.defineMethod (c$, "doAjax", \r
- function () {\r
-{\r
-return Jmol._doAjax(this.url, this.postOut, this.bytesOut);\r
-}});\r
-Clazz.overrideMethod (c$, "connect", \r
-function () {\r
-});\r
-Clazz.defineMethod (c$, "outputBytes", \r
-function (bytes) {\r
-this.bytesOut = bytes;\r
-}, "~A");\r
-Clazz.defineMethod (c$, "outputString", \r
-function (post) {\r
-this.postOut = post;\r
-}, "~S");\r
-Clazz.overrideMethod (c$, "getInputStream", \r
-function () {\r
-var is = null;\r
-var o = this.doAjax ();\r
-if (JU.AU.isAB (o)) is = JU.Rdr.getBIS (o);\r
- else if (Clazz.instanceOf (o, JU.SB)) is = JU.Rdr.getBIS (JU.Rdr.getBytesFromSB (o));\r
- else if (Clazz.instanceOf (o, String)) is = JU.Rdr.getBIS ((o).getBytes ());\r
-return is;\r
-});\r
-Clazz.defineMethod (c$, "getContents", \r
-function () {\r
-return this.doAjax ();\r
-});\r
-});\r
+Clazz.declarePackage ("JU");
+Clazz.load (["java.net.URLConnection"], "JU.AjaxURLConnection", ["JU.AU", "$.Rdr", "$.SB"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.bytesOut = null;
+this.postOut = "";
+Clazz.instantialize (this, arguments);
+}, JU, "AjaxURLConnection", java.net.URLConnection);
+Clazz.defineMethod (c$, "doAjax", 
+ function () {
+{
+return Jmol._doAjax(this.url, this.postOut, this.bytesOut);
+}});
+Clazz.overrideMethod (c$, "connect", 
+function () {
+});
+Clazz.defineMethod (c$, "outputBytes", 
+function (bytes) {
+this.bytesOut = bytes;
+}, "~A");
+Clazz.defineMethod (c$, "outputString", 
+function (post) {
+this.postOut = post;
+}, "~S");
+Clazz.overrideMethod (c$, "getInputStream", 
+function () {
+var is = null;
+var o = this.doAjax ();
+if (JU.AU.isAB (o)) is = JU.Rdr.getBIS (o);
+ else if (Clazz.instanceOf (o, JU.SB)) is = JU.Rdr.getBIS (JU.Rdr.getBytesFromSB (o));
+ else if (Clazz.instanceOf (o, String)) is = JU.Rdr.getBIS ((o).getBytes ());
+return is;
+});
+Clazz.defineMethod (c$, "getContents", 
+function () {
+return this.doAjax ();
+});
+});