public class ResourceFileProvider extends AbstractFileProvider
Modifier and Type | Field and Description |
---|---|
protected static Collection<Capability> |
capabilities
The provider's capabilities
|
Constructor and Description |
---|
ResourceFileProvider()
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
closeFileSystem(FileSystem filesystem)
Closes the FileSystem.
|
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 FileSystemConfigBuilder.
|
addFileSystem, close, createFileSystem, findFileSystem, freeUnusedResources, getFileNameParser, parseUri, setFileNameParser
addComponent, removeComponent
getContext, getLogger, init, setContext, setLogger
protected static final Collection<Capability> capabilities
public void closeFileSystem(FileSystem filesystem)
AbstractFileProvider
closeFileSystem
in class AbstractFileProvider
filesystem
- The FileSystem to close.public FileObject findFile(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) throws FileSystemException
baseFile
- The base file.uri
- The URI of the file to locate.fileSystemOptions
- The FileSystem options.FileSystemException
- if an error occurs.public Collection<Capability> getCapabilities()
FileProvider
These are the same as on the file system, but available before the first file system was instantiated.
public FileSystemConfigBuilder getConfigBuilder()
AbstractFileProvider
getConfigBuilder
in interface FileProvider
getConfigBuilder
in class AbstractFileProvider
Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.