public interface URLContainer
Modifier and Type | Method and Description |
---|---|
java.net.URL |
getResource(java.lang.String name)
Returns the resource with the given name.
|
java.util.Set<java.lang.String> |
getResources(java.lang.String path)
Returns the directory-like listing of all the paths to resources within
the container whose longest sub-path matches the given path.
|
java.net.URL getResource(java.lang.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 resourcejava.util.Set<java.lang.String> getResources(java.lang.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