public interface FileProvider
A file provider may also implement VfsComponent
.
Modifier and Type | Method and Description |
---|---|
FileObject |
createFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system.
|
FileObject |
findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
Collection<Capability> |
getCapabilities()
Gets the file system capabilities.
|
FileSystemConfigBuilder |
getConfigBuilder()
Gets the configbuilder useable to collect the needed fileSystemOptions.
|
FileName |
parseUri(FileName root,
String uri)
Parses the URI into a FileName.
|
FileObject findFile(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) throws FileSystemException
baseFile
- The base file to use for resolving the individual parts of a compound URI.uri
- The absolute URI of the file to find.fileSystemOptions
- The FileSystemOptionsFileSystemException
- if an error occurs locating the file.FileObject createFileSystem(String scheme, FileObject file, FileSystemOptions fileSystemOptions) throws FileSystemException
scheme
- The URI scheme for the layered file system.file
- The file to build the file system on.fileSystemOptions
- The FileSystemOptions.FileSystemException
- if an error occurs.FileSystemConfigBuilder getConfigBuilder()
Collection<Capability> getCapabilities()
These are the same as on the file system, but available before the first file system was instanciated.
FileName parseUri(FileName root, String uri) throws FileSystemException
root
- The base FileName.uri
- The file to be accessed.FileSystemException
- if an error occurs.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.