FileDocCategorySizeDatePackage
FindResources.javaAPI DocExample484Mon May 01 14:41:44 BST 2000mypackage

FindResources

public class FindResources extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    // absolute from the classpath
    URL url = FindResources.class.getResource("/mypackage/foo.txt");
    // relative to the class location
    url = FindResources.class.getResource("foo.txt");
    // another relative document
    url = FindResources.class.getResource("docs/bar.txt");