public abstract class AbstractOriginatingFileProvider extends AbstractFileProvider
FileProvider
that handles physical files, such as the files in a
local fs, or on an FTP server. An originating file system cannot be
layered on top of another file system.Constructor and Description |
---|
AbstractOriginatingFileProvider() |
Modifier and Type | Method and Description |
---|---|
protected abstract FileSystem |
doCreateFileSystem(FileName rootName,
FileSystemOptions fileSystemOptions)
Creates a
FileSystem . |
protected FileObject |
findFile(FileName name,
FileSystemOptions fileSystemOptions)
Locates a file from its parsed URI.
|
FileObject |
findFile(FileObject baseFile,
java.lang.String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
addFileSystem, close, closeFileSystem, createFileSystem, findFileSystem, freeUnusedResources, getConfigBuilder, getFileNameParser, parseUri, setFileNameParser
addComponent, removeComponent
getContext, getLogger, init, setContext, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCapabilities
public FileObject findFile(FileObject baseFile, java.lang.String uri, FileSystemOptions fileSystemOptions) throws FileSystemException
uri
- baseFile
- The base file to use for resolving the individual parts of
a compound URI.FileSystemException
protected FileObject findFile(FileName name, FileSystemOptions fileSystemOptions) throws FileSystemException
FileSystemException
protected abstract FileSystem doCreateFileSystem(FileName rootName, FileSystemOptions fileSystemOptions) throws FileSystemException
FileSystem
. If the returned FileSystem implements
VfsComponent
, it will be initialised.rootName
- The name of the root file of the file system to create.FileSystemException