Class AbstractLayeredFileProvider

    • Constructor Detail

      • AbstractLayeredFileProvider

        public AbstractLayeredFileProvider()
    • Method Detail

      • findFile

        public FileObject findFile​(FileObject baseFile,
                                   java.lang.String uri,
                                   FileSystemOptions fileSystemOptions)
                            throws FileSystemException
        Locates a file object, by absolute URI.
        Parameters:
        baseFile - The base FileObject.
        uri - The name of the file to locate.
        fileSystemOptions - The FileSystemOptions.
        Returns:
        The FileObject if it is located, null otherwise.
        Throws:
        FileSystemException - if an error occurs.
      • doCreateFileSystem

        protected abstract FileSystem doCreateFileSystem​(java.lang.String scheme,
                                                         FileObject file,
                                                         FileSystemOptions fileSystemOptions)
                                                  throws FileSystemException
        Creates a layered file system.

        This method is called if the file system is not cached.

        Parameters:
        scheme - The URI scheme.
        file - The file to create the file system on top of.
        fileSystemOptions - options for new and underlying file systems.
        Returns:
        The file system, never null. Might implement VfsComponent.
        Throws:
        FileSystemException - if the file system cannot be created.