Interface ResourceLocator

  • All Known Implementing Classes:
    CommonModelRegistry

    public interface ResourceLocator
    Interface to load .class files as resources for processing by the parser.
    Author:
    Jerome Dochez
    • Method Detail

      • openResourceStream

        InputStream openResourceStream​(String name)
                                throws 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:
        IOException - on i/o error
      • getResource

        URL getResource​(String name)
        Retrieves the URL given a resource name
        Parameters:
        name -
        Returns:
        the resource URL, or null if not found