ClassLoader.getResource

ClassLoader.getResource

Class Overview | Class Members | This Package | All Packages

Syntax
public URL getResource( String name )
Parameters
name
the name of the resource, to be used as is.
Returns
an InputStream on the resource, or null if not found.
Description
Find a resource with a given name. The return is a URL to the resource. Doing a getContent() on the URL may return an Image, an AudioClip, or an InputStream.

The class loader can choose what to do to locate the resource.