com.jme.util.resource
Interface ResourceLocator

All Known Implementing Classes:
AbsoluteResourceLocator, ClasspathResourceLocator, MultiFormatResourceLocator, RelativeResourceLocator, SimpleResourceLocator, XMLImporter

public interface ResourceLocator

Interface for locating resources from resource names.

Author:
Joshua Slack

Method Summary
 java.net.URL locateResource(java.lang.String resourceName)
          Locates a resource according to the strategy of the resource locator implementation (subclass).
 

Method Detail

locateResource

java.net.URL locateResource(java.lang.String resourceName)
Locates a resource according to the strategy of the resource locator implementation (subclass).

Parameters:
resourceName - the name of the resource to locate; it this is a path it must be slash separated (no backslashes)
Returns:
a URL for the resource, null if the resource was not found
See Also:
SimpleResourceLocator, MultiFormatResourceLocator