corda/classpath/java/lang/SystemClassLoader.java
2007-08-19 13:45:51 -06:00

24 lines
559 B
Java

package java.lang;
import java.net.URL;
import java.net.MalformedURLException;
public class SystemClassLoader extends ClassLoader {
private Object map;
protected native Class findClass(String name) throws ClassNotFoundException;
protected native Class findLoadedClass(String name);
private native boolean resourceExists(String name);
protected URL findResource(String name) {
if (resourceExists(name)) {
try {
return new URL("resource:" + name);
} catch (MalformedURLException ignored) { }
}
return null;
}
}