Package com.ardor3d.util.resource
Class RelativeResourceLocator
java.lang.Object
com.ardor3d.util.resource.RelativeResourceLocator
- All Implemented Interfaces:
ResourceLocator
This locator takes a base resource and tries to find other resources that are "relative" to it. What relative means
may be up to the type of ResourceSource given.
-
Constructor Summary
ConstructorDescriptionRelativeResourceLocator
(ResourceSource resource) Construct a new RelativeResourceLocator using the given source as our base. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
locateResource
(String resourceName) Locates a resource according to the strategy of the resource locator implementation (subclass).
-
Constructor Details
-
RelativeResourceLocator
Construct a new RelativeResourceLocator using the given source as our base.- Parameters:
resource
- our base source.
-
-
Method Details
-
getBaseSource
-
locateResource
Description copied from interface:ResourceLocator
Locates a resource according to the strategy of the resource locator implementation (subclass).- Specified by:
locateResource
in interfaceResourceLocator
- Parameters:
resourceName
- the name of the resource to locate; it this is a path it must be slash separated (no backslashes)- Returns:
- a source for the resource, null if the resource was not found
- See Also:
-
equals
-
hashCode
public int hashCode()
-