Class WidgetClasspathResourceReader

    • Constructor Detail

      • WidgetClasspathResourceReader

        public WidgetClasspathResourceReader()
    • Method Detail

      • getResourceAsStream

        public java.io.InputStream getResourceAsStream​(java.lang.String path)
        Description copied from interface: ResourceLoader
        Returns resource identified by path as InputStream or null if resource does not exist.
        Parameters:
        path - the path identifying resource.
        Returns:
        Resource as InputStream or null.
      • hasResource

        public boolean hasResource​(java.lang.String path)
        Description copied from interface: ResourceLoader
        Checks whether this loader can load resource identified by path.
        Parameters:
        path - the path identifying resource.
        Returns:
        true whether this loader can load resource, otherwise false.
      • getResourceAsStream

        public java.io.InputStream getResourceAsStream​(WidgetJarLibInfo widgetJarLibInfo,
                                                       java.lang.String resourceName)
        Description copied from interface: CockpitResourceLoader
        Returns a resource file for the given path and WidgetJarLibInfo as a InputStream
      • hasResource

        public boolean hasResource​(WidgetJarLibInfo jarLibInfo,
                                   java.lang.String path)
        Description copied from interface: CockpitResourceLoader
        Checks whether a resource exists and may be read
        Parameters:
        jarLibInfo - widget, which resource is searched
        path - path to resource
        Returns:
        true if resource is available
      • getResourceAsStream

        public java.io.InputStream getResourceAsStream​(java.io.File moduleJar,
                                                       java.lang.String path)
      • hasResource

        public boolean hasResource​(java.io.File moduleJar,
                                   java.lang.String path)