edu.mit.util
Class ResourceFinder
java.lang.Object
|
+--edu.mit.util.ResourceFinder
- public class ResourceFinder
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceFinder
public ResourceFinder()
find
public static Class find(String name)
getResource
public static URL getResource(String resource)
getResource
public static URL getResource(Object root,
String resource)
- It first tries to find resource relative to the path that the
root class is in. Second it searches in the root of the
classpath.
main
public static void main(String[] args)