Interface ClassSpace

    • Method Detail

      • getResource

        URL getResource​(String name)
        Queries the surrounding class space for the resource with the given name.
        Parameters:
        name - The resource name
        Returns:
        URL pointing to the resource; null if it wasn't found
        See Also:
        ClassLoader.getResource(String)
      • getResources

        Enumeration<URL> getResources​(String name)
        Queries the surrounding class space for all resources with the given name.
        Parameters:
        name - The resource name
        Returns:
        Sequence of URLs, one for each matching resource
        See Also:
        ClassLoader.getResources(String)
      • findEntries

        Enumeration<URL> findEntries​(String path,
                                     String glob,
                                     boolean recurse)
        Queries local class space content for entries matching the given pattern.
        Parameters:
        path - The initial search directory; for example "META-INF"
        glob - The filename glob pattern; for example "*.xml"
        recurse - If true recurse into sub-directories; otherwise only search initial directory
        Returns:
        Sequence of URLs, one for each matching entry
        See Also:
        Bundle.findEntries(String, String, boolean)