Interface PluginResourceLoader

    • Method Detail

      • listResources

        java.util.List<java.lang.String> listResources()
                                                throws PluginException,
                                                       java.io.IOException
        Returns:
        the list of resources available
        Throws:
        PluginException
        java.io.IOException
      • openResourceStreamFor

        java.io.InputStream openResourceStreamFor​(java.lang.String name)
                                           throws PluginException,
                                                  java.io.IOException
        Open a stream to load a resource
        Parameters:
        name - resource path and name
        Returns:
        input stream for the resources, must be closed when finished, or null if the plugin does not support resources
        Throws:
        PluginException - if a path is requested that was not in the plugin
        java.io.IOException - if an error occurs