public interface URLContainer
| Modifier and Type | Method and Description |
|---|---|
URL |
getResource(String name)
Returns the resource with the given name.
|
Set<String> |
getResources(String path)
Returns the directory-like listing of all the paths to resources within
the container whose longest sub-path matches the given path.
|
URL getResource(String name)
The name is a slash (/) separated path that identifies the
resource.
name - the resource namenull if
the resource is not found or if the invoker does not have
adequate privileges to get the resourceSet<String> getResources(String path)
Paths indicating sub-directory paths end with a slash (/). A
path can be passed to the getResource(String) method to return a
resource URL.
path - the resource path