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 file system.
|
FileObject |
findLocalFile(File file)
Finds a local file.
|
FileObject |
findLocalFile(String name)
Finds a local file, from its local name.
|
Collection<Capability> |
getCapabilities()
Gets the file system capabilities.
|
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 DefaultLocalFileProvider()
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 FileObject findLocalFile(File file) throws FileSystemException
findLocalFile
in interface LocalFileProvider
file
- The File to locate.FileSystemException
- if an error occurs.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 Collection<Capability> getCapabilities()
FileProvider
These are the same as on the file system, but available before the first file system was instanciated.
getCapabilities
in interface FileProvider
public boolean isAbsoluteLocalName(String name)
isAbsoluteLocalName
in interface LocalFileProvider
name
- The file name.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.