edu.mit.util
Class ResourceFinder

java.lang.Object
  |
  +--edu.mit.util.ResourceFinder

public class ResourceFinder
extends Object


Constructor Summary
ResourceFinder()
           
 
Method Summary
static Class find(String name)
           
static URL getResource(Object root, String resource)
          It first tries to find resource relative to the path that the root class is in.
static URL getResource(String resource)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceFinder

public ResourceFinder()
Method Detail

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)