public class DefaultLocalFileProvider extends AbstractOriginatingFileProvider implements LocalFileProvider
Modifier and Type | Field and Description |
---|---|
static Collection<Capability> |
capabilities
The provider's capabilities.
|
Constructor and Description |
---|
DefaultLocalFileProvider() |
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
doCreateFileSystem(FileName name,
FileSystemOptions fileSystemOptions)
Creates the filesystem.
|
FileObject |
findLocalFile(File file)
Finds a local file.
|
FileObject |
findLocalFile(String name)
Finds a local file, from its local name.
|
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(String name)
Determines if a name is an absolute file name.
|
findFile, findFile, getFileSystem
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
createFileSystem, findFile, getConfigBuilder, parseUri
public static final Collection<Capability> capabilities
public boolean isAbsoluteLocalName(String name)
isAbsoluteLocalName
in interface LocalFileProvider
name
- The file name.public FileObject findLocalFile(String name) throws FileSystemException
findLocalFile
in interface LocalFileProvider
name
- The name of the file to locate.FileSystemException
- if an error occurs.public FileObject findLocalFile(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 Collection<Capability> getCapabilities()
FileProvider
getCapabilities
in interface FileProvider
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.