import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
+import java.net.MalformedURLException;
import java.net.URL;
import java.util.Properties;
System.out.println(
"Platform id=" + id + " reading Info." + key + " = " + value);
- p.put(id + "_" + key, value);
+ p.put(key, value);
/**
* @j2sNative
}
+ public static URL getDocumentBase()
+ {
+ try
+ {
+ return (isJS() ? new URL(/**
+ * @j2sNative J2S.thisApplet._applet.appletViewer.appletDocumentBase
+ * ||
+ */
+ "") : null);
+ } catch (MalformedURLException e)
+ {
+ return null;
+ }
+ }
+
+ public static URL getCodeBase()
+ {
+ try
+ {
+ return (isJS() ? new URL(/**
+ * @j2sNative J2S.thisApplet._applet.appletViewer.appletCodeBase
+ * ||
+ */
+ "") : null);
+ } catch (MalformedURLException e)
+ {
+ return null;
+ }
+ }
+
}