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()
Constructs a new provider.
|
| 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, getFileSystemaddFileSystem, close, closeFileSystem, createFileSystem, findFileSystem, freeUnusedResources, getConfigBuilder, getFileNameParser, parseUri, setFileNameParseraddComponent, removeComponentgetContext, getLogger, init, setContext, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateFileSystem, findFile, getConfigBuilder, parseUripublic static final Collection<Capability> capabilities
public DefaultLocalFileProvider()
public boolean isAbsoluteLocalName(String name)
isAbsoluteLocalName in interface LocalFileProvidername - The file name.public FileObject findLocalFile(String name) throws FileSystemException
findLocalFile in interface LocalFileProvidername - The name of the file to locate.FileSystemException - if an error occurs.public FileObject findLocalFile(File file) throws FileSystemException
findLocalFile in interface LocalFileProviderfile - The File to locate.FileSystemException - if an error occurs.protected FileSystem doCreateFileSystem(FileName name, FileSystemOptions fileSystemOptions) throws FileSystemException
doCreateFileSystem in class AbstractOriginatingFileProvidername - 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()
FileProvidergetCapabilities in interface FileProviderCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.