1 Clazz.declarePackage ("jssun.awt.image");
2 Clazz.load (["jssun.awt.image.InputStreamImageSource"], "jssun.awt.image.URLImageSource", ["java.net.URL"], function () {
3 c$ = Clazz.decorateAsClass (function () {
6 this.actualHost = null;
8 Clazz.instantialize (this, arguments);
9 }, jssun.awt.image, "URLImageSource", jssun.awt.image.InputStreamImageSource);
10 Clazz.makeConstructor (c$,
12 Clazz.superConstructor (this, jssun.awt.image.URLImageSource, []);
15 Clazz.makeConstructor (c$,
17 this.construct ( new java.net.URL (null, href));
19 Clazz.makeConstructor (c$,
23 }, "java.net.URL,java.net.URLConnection");
24 Clazz.makeConstructor (c$,
26 this.construct (uc.getURL (), uc);
27 }, "java.net.URLConnection");
28 Clazz.overrideMethod (c$, "checkSecurity",
29 function (context, quiet) {
30 if (this.actualHost != null) {
32 var security = System.getSecurityManager ();
33 if (security != null) {
34 security.checkConnect (this.actualHost, this.actualPort, context);
36 if (Clazz.exceptionOf (e, SecurityException)) {
46 Clazz.defineMethod (c$, "getDecoder",