Interface ResourceLocator
- All Known Implementing Classes:
CommonModelRegistry
public interface ResourceLocator
Interface to load .class files as resources for processing by the parser.
-
Method Summary
Modifier and TypeMethodDescriptiongetResource
(String name) Retrieves the URL given a resource nameopenResourceStream
(String name) Opens and input stream for the resources identified by the parameter name.
-
Method Details
-
openResourceStream
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:
IOException
- on i/o error
-
getResource
Retrieves the URL given a resource name- Parameters:
name
-- Returns:
- the resource URL, or null if not found
-