consciouscode.util.resource
Interface ResourceTree

All Known Implementing Classes:
ClassLoaderResourceTree, FileResourceTree, ZipResourceTree

public interface ResourceTree

Provides access to a hierarchy of abstract resources within some repository.

Resource trees are safe for use from multiple threads.


Method Summary
 Resource getResource(String path)
          Returns information about a resource file.
 ResourceTreeProvider getResourceTreeProvider()
          Gets the provider of this resource tree.
 URL getResourceUrl(String path)
          Returns a URL to a resource file.
 

Method Detail

getResource

Resource getResource(String path)
Returns information about a resource file.

Parameters:
path - identifies the desired resource.
Returns:
null if no resource exists at the given path.

getResourceUrl

URL getResourceUrl(String path)
Returns a URL to a resource file.

Returns:
null if no resource exists at the given path.

getResourceTreeProvider

ResourceTreeProvider getResourceTreeProvider()
Gets the provider of this resource tree.

Returns:
may be null.


Copyright © 2001–2012 Todd V. Jonker. All Rights Reserved.