FileProvider
, LocalFileProvider
, VfsComponent
public class DefaultLocalFileProvider extends AbstractOriginatingFileProvider implements LocalFileProvider
Modifier and Type | Field | Description |
---|---|---|
static java.util.Collection<Capability> |
capabilities |
The provider's capabilities.
|
Constructor | Description |
---|---|
DefaultLocalFileProvider() |
Constructs a new provider.
|
Modifier and Type | Method | Description |
---|---|---|
protected FileSystem |
doCreateFileSystem(FileName name,
FileSystemOptions fileSystemOptions) |
Creates the filesystem.
|
FileObject |
findLocalFile(java.io.File file) |
Finds a local file.
|
FileObject |
findLocalFile(java.lang.String name) |
Finds a local file, from its local name.
|
java.util.Collection<Capability> |
getCapabilities() |
Get the filesystem capabilities.
These are the same as on the filesystem, but available before the first filesystem was instanciated. |
boolean |
isAbsoluteLocalName(java.lang.String name) |
Determines if a name is an absolute file name.
|
addFileSystem, close, closeFileSystem, createFileSystem, findFileSystem, freeUnusedResources, getConfigBuilder, getFileNameParser, parseUri, setFileNameParser
findFile, findFile, getFileSystem
getContext, getLogger, init, setContext, setLogger
addComponent, removeComponent
createFileSystem, findFile, getConfigBuilder, parseUri
public static final java.util.Collection<Capability> capabilities
public DefaultLocalFileProvider()
public boolean isAbsoluteLocalName(java.lang.String name)
isAbsoluteLocalName
in interface LocalFileProvider
name
- The file name.public FileObject findLocalFile(java.lang.String name) throws FileSystemException
findLocalFile
in interface LocalFileProvider
name
- The name of the file to locate.FileSystemException
- if an error occurs.public FileObject findLocalFile(java.io.File file) throws FileSystemException
findLocalFile
in interface LocalFileProvider
file
- The File to locate.FileSystemException
- if an error occurs.protected FileSystem doCreateFileSystem(FileName name, FileSystemOptions fileSystemOptions) throws FileSystemException
doCreateFileSystem
in class AbstractOriginatingFileProvider
name
- The name of the root file of the file system to create.fileSystemOptions
- The FileSystem options.FileSystemException
- if an error occurs.public java.util.Collection<Capability> getCapabilities()
FileProvider
getCapabilities
in interface FileProvider