Interface ResourceLocator
-
- All Known Implementing Classes:
CommonModelRegistry
public interface ResourceLocator
Interface to load .class files as resources for processing by the parser.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.URL
getResource(java.lang.String name)
Retrieves the URL given a resource namejava.io.InputStream
openResourceStream(java.lang.String name)
Opens and input stream for the resources identified by the parameter name.
-
-
-
Method Detail
-
openResourceStream
java.io.InputStream openResourceStream(java.lang.String name) throws java.io.IOException
Opens and input stream for the resources identified by the parameter name.- Parameters:
name
- the resource identification- Returns:
- an input stream, or null if the name does not exist
- Throws:
java.io.IOException
- on i/o error
-
getResource
java.net.URL getResource(java.lang.String name)
Retrieves the URL given a resource name- Parameters:
name
-- Returns:
- the resource URL, or null if not found
-
-