public interface ResourceRegistry
Modifier and Type | Method and Description |
---|---|
URL |
getResource(String pathname)
Gets a resource
URL corresponding to the given pathname. |
InputStream |
getResourceAsStream(String pathname)
Gets an
InputStream to the resource at the given pathname. |
Enumeration<URL> |
getResources(String pathname)
Gets all resource
URL s corresponding to the given pathname. |
URL getResource(String pathname)
URL
corresponding to the given pathname.pathname
- the resource pathname.URL
or null
if not found.Enumeration<URL> getResources(String pathname) throws IOException
URL
s corresponding to the given pathname.pathname
- the resource pathname.Enumeration
of resource URL
s.IOException
- when something goes awry.InputStream getResourceAsStream(String pathname)
InputStream
to the resource at the given pathname.pathname
- the resource pathname.InputStream
to the resource or null
if not found.