home *** CD-ROM | disk | FTP | other *** search
- package powersoft.beanbox;
-
- import java.applet.Applet;
- import java.applet.AppletContext;
- import java.applet.AppletStub;
- import java.net.URL;
-
- public class LocalAppletStub implements AppletStub {
- transient boolean active;
- transient Applet target;
- transient AppletContext context;
- transient URL codeBase;
- transient URL docBase;
-
- public LocalAppletStub(Applet var1, AppletContext var2, URL var3, URL var4) {
- this.target = var1;
- this.context = var2;
- this.docBase = var4;
- this.codeBase = var3;
- if (var1 != null) {
- Class var5 = var1.getClass();
- if (var5 != null) {
- String var6 = var5.getName();
- if (var6 != null) {
- var6 = var6.replace('.', '/').concat(".class");
- URL var7 = ClassLoader.getSystemResource(var6);
- if (var7 != null) {
- String var8 = var7.toExternalForm();
- if (var8 != null) {
- if (var8.endsWith(var6)) {
- int var9 = var8.length() - var6.length();
-
- try {
- this.codeBase = new URL(var8.substring(0, var9));
- } catch (Exception var10) {
- this.codeBase = var3;
- }
- }
-
- }
- }
- }
- }
- }
- }
-
- public boolean isActive() {
- return this.active;
- }
-
- public URL getDocumentBase() {
- return this.docBase;
- }
-
- public URL getCodeBase() {
- return this.codeBase;
- }
-
- public String getParameter(String var1) {
- return null;
- }
-
- public AppletContext getAppletContext() {
- return this.context;
- }
-
- public void appletResize(int var1, int var2) {
- }
- }
-