Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / net / URLConnection.js
index 2964fa5..eca2cd6 100644 (file)
@@ -1,56 +1,56 @@
-Clazz.declarePackage ("java.net");\r
-Clazz.load (null, "java.net.URLConnection", ["java.lang.IllegalStateException", "$.NullPointerException", "java.net.UnknownServiceException", "JU.Lst"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.url = null;\r
-this.doInput = true;\r
-this.doOutput = false;\r
-this.connected = false;\r
-this.requests = null;\r
-Clazz.instantialize (this, arguments);\r
-}, java.net, "URLConnection");\r
-Clazz.defineMethod (c$, "setDoInput", \r
-function (doinput) {\r
-if (this.connected) throw  new IllegalStateException ("Already connected");\r
-this.doInput = doinput;\r
-}, "~B");\r
-Clazz.defineMethod (c$, "getDoInput", \r
-function () {\r
-return this.doInput;\r
-});\r
-Clazz.defineMethod (c$, "setDoOutput", \r
-function (dooutput) {\r
-if (this.connected) throw  new IllegalStateException ("Already connected");\r
-this.doOutput = dooutput;\r
-}, "~B");\r
-Clazz.defineMethod (c$, "getDoOutput", \r
-function () {\r
-return this.doOutput;\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (url) {\r
-this.url = url;\r
-}, "java.net.URL");\r
-Clazz.defineMethod (c$, "getURL", \r
-function () {\r
-return this.url;\r
-});\r
-Clazz.defineMethod (c$, "getInputStream", \r
-function () {\r
-throw  new java.net.UnknownServiceException ("protocol doesn't support input");\r
-});\r
-Clazz.defineMethod (c$, "getOutputStream", \r
-function () {\r
-throw  new java.net.UnknownServiceException ("protocol doesn't support output");\r
-});\r
-Clazz.defineMethod (c$, "setRequestProperty", \r
-function (key, value) {\r
-if (this.connected) throw  new IllegalStateException ("Already connected");\r
-if (key == null) throw  new NullPointerException ("key is null");\r
-if (this.requests == null) this.requests =  new JU.Lst ();\r
-for (var i = this.requests.size (); --i >= 0; ) if (this.requests.get (i)[0].equals (key)) {\r
-this.requests.get (i)[1] = value;\r
-return;\r
-}\r
-this.requests.addLast ( Clazz.newArray (-1, [key, value]));\r
-}, "~S,~S");\r
-});\r
+Clazz.declarePackage ("java.net");
+Clazz.load (null, "java.net.URLConnection", ["java.lang.IllegalStateException", "$.NullPointerException", "java.net.UnknownServiceException", "JU.Lst"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.url = null;
+this.doInput = true;
+this.doOutput = false;
+this.connected = false;
+this.requests = null;
+Clazz.instantialize (this, arguments);
+}, java.net, "URLConnection");
+Clazz.defineMethod (c$, "setDoInput", 
+function (doinput) {
+if (this.connected) throw  new IllegalStateException ("Already connected");
+this.doInput = doinput;
+}, "~B");
+Clazz.defineMethod (c$, "getDoInput", 
+function () {
+return this.doInput;
+});
+Clazz.defineMethod (c$, "setDoOutput", 
+function (dooutput) {
+if (this.connected) throw  new IllegalStateException ("Already connected");
+this.doOutput = dooutput;
+}, "~B");
+Clazz.defineMethod (c$, "getDoOutput", 
+function () {
+return this.doOutput;
+});
+Clazz.makeConstructor (c$, 
+function (url) {
+this.url = url;
+}, "java.net.URL");
+Clazz.defineMethod (c$, "getURL", 
+function () {
+return this.url;
+});
+Clazz.defineMethod (c$, "getInputStream", 
+function () {
+throw  new java.net.UnknownServiceException ("protocol doesn't support input");
+});
+Clazz.defineMethod (c$, "getOutputStream", 
+function () {
+throw  new java.net.UnknownServiceException ("protocol doesn't support output");
+});
+Clazz.defineMethod (c$, "setRequestProperty", 
+function (key, value) {
+if (this.connected) throw  new IllegalStateException ("Already connected");
+if (key == null) throw  new NullPointerException ("key is null");
+if (this.requests == null) this.requests =  new JU.Lst ();
+for (var i = this.requests.size (); --i >= 0; ) if (this.requests.get (i)[0].equals (key)) {
+this.requests.get (i)[1] = value;
+return;
+}
+this.requests.addLast ( Clazz.newArray (-1, [key, value]));
+}, "~S,~S");
+});