Class FileResourceSet

    • Constructor Detail

      • FileResourceSet

        public FileResourceSet​(File root)
                        throws IOException
        Constructs a file-based ResourceSet, using the given root as root directory.
        Parameters:
        root - root directory
        Throws:
        IOException - In case an error occurred while getting the real path of the root directory.
    • Method Detail

      • find

        public Resource find​(String path)
        Description copied from interface: ResourceSet
        Finds a Resource matching the given path. Returns null if no resource can be found or if any error happened during lookup.
        Specified by:
        find in interface ResourceSet
        Parameters:
        path - resource path
        Returns:
        a matching Resource or null if not found or failure.