X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=site%2Fswingjs%2Fj2s%2Fjssun%2Fawt%2Fimage%2FURLImageSource.js;h=33436d84d0666d12cd6b5a3c9e1e42b32b24b111;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hp=b70379b6c2cdf4e9b6718c1235aa26c178e32b08;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6;p=jalviewjs.git diff --git a/site/swingjs/j2s/jssun/awt/image/URLImageSource.js b/site/swingjs/j2s/jssun/awt/image/URLImageSource.js index b70379b..33436d8 100644 --- a/site/swingjs/j2s/jssun/awt/image/URLImageSource.js +++ b/site/swingjs/j2s/jssun/awt/image/URLImageSource.js @@ -1,50 +1,50 @@ -Clazz.declarePackage ("jssun.awt.image"); -Clazz.load (["jssun.awt.image.InputStreamImageSource"], "jssun.awt.image.URLImageSource", ["java.net.URL"], function () { -c$ = Clazz.decorateAsClass (function () { -this.url = null; -this.conn = null; -this.actualHost = null; -this.actualPort = 0; -Clazz.instantialize (this, arguments); -}, jssun.awt.image, "URLImageSource", jssun.awt.image.InputStreamImageSource); -Clazz.makeConstructor (c$, -function (u) { -Clazz.superConstructor (this, jssun.awt.image.URLImageSource, []); -this.url = u; -}, "java.net.URL"); -Clazz.makeConstructor (c$, -function (href) { -this.construct ( new java.net.URL (null, href)); -}, "~S"); -Clazz.makeConstructor (c$, -function (u, uc) { -this.construct (u); -this.conn = uc; -}, "java.net.URL,java.net.URLConnection"); -Clazz.makeConstructor (c$, -function (uc) { -this.construct (uc.getURL (), uc); -}, "java.net.URLConnection"); -Clazz.overrideMethod (c$, "checkSecurity", -function (context, quiet) { -if (this.actualHost != null) { -try { -var security = System.getSecurityManager (); -if (security != null) { -security.checkConnect (this.actualHost, this.actualPort, context); -}} catch (e) { -if (Clazz.exceptionOf (e, SecurityException)) { -if (!quiet) { -throw e; -}return false; -} else { -throw e; -} -} -}return true; -}, "~O,~B"); -Clazz.defineMethod (c$, "getDecoder", -function () { -return null; -}); -}); +Clazz.declarePackage ("jssun.awt.image"); +Clazz.load (["jssun.awt.image.InputStreamImageSource"], "jssun.awt.image.URLImageSource", ["java.net.URL"], function () { +c$ = Clazz.decorateAsClass (function () { +this.url = null; +this.conn = null; +this.actualHost = null; +this.actualPort = 0; +Clazz.instantialize (this, arguments); +}, jssun.awt.image, "URLImageSource", jssun.awt.image.InputStreamImageSource); +Clazz.makeConstructor (c$, +function (u) { +Clazz.superConstructor (this, jssun.awt.image.URLImageSource, []); +this.url = u; +}, "java.net.URL"); +Clazz.makeConstructor (c$, +function (href) { +this.construct ( new java.net.URL (null, href)); +}, "~S"); +Clazz.makeConstructor (c$, +function (u, uc) { +this.construct (u); +this.conn = uc; +}, "java.net.URL,java.net.URLConnection"); +Clazz.makeConstructor (c$, +function (uc) { +this.construct (uc.getURL (), uc); +}, "java.net.URLConnection"); +Clazz.overrideMethod (c$, "checkSecurity", +function (context, quiet) { +if (this.actualHost != null) { +try { +var security = System.getSecurityManager (); +if (security != null) { +security.checkConnect (this.actualHost, this.actualPort, context); +}} catch (e) { +if (Clazz.exceptionOf (e, SecurityException)) { +if (!quiet) { +throw e; +}return false; +} else { +throw e; +} +} +}return true; +}, "~O,~B"); +Clazz.defineMethod (c$, "getDecoder", +function () { +return null; +}); +});