net.larsan.urd.util
Interface ResourceLocator

All Known Implementing Classes:
FileSet, ResourceLocatorImpl

public interface ResourceLocator

A resource locator is an interface for resource abstraction. The locator methods takes a path and produces content or information about the resource mapped the the path if any is available. This abstraction layer is useful for any code wishing to read resources but not necessary deal with the aquisition.

The resource locator only works with '/' as separator.

Version:
Alpha-0.1 / 2002-10-06 21:37
Author:
Lars J. Nilsson

Method Summary
 Resource getResource(java.lang.String path)
          Find resource from a path.
 

Method Detail

getResource

public Resource getResource(java.lang.String path)
Find resource from a path. All paths in a resource locator uses forward slashes only as path separators.

Parameters:
path - Resource path, must not be null
Returns:
A resource from the given path, or null if not found