|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.vfs2.provider.AbstractVfsComponent
org.apache.commons.vfs2.provider.AbstractVfsContainer
org.apache.commons.vfs2.provider.AbstractFileProvider
org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider
org.apache.commons.vfs2.provider.local.DefaultLocalFileProvider
public class DefaultLocalFileProvider
A file system provider, which uses direct file access.
| Field Summary | |
|---|---|
static Collection<Capability> |
capabilities
The provider's capabilities. |
| Constructor Summary | |
|---|---|
DefaultLocalFileProvider()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider |
|---|
findFile, findFile, getFileSystem |
| Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileProvider |
|---|
addFileSystem, close, closeFileSystem, createFileSystem, findFileSystem, freeUnusedResources, getConfigBuilder, getFileNameParser, parseUri, setFileNameParser |
| Methods inherited from class org.apache.commons.vfs2.provider.AbstractVfsContainer |
|---|
addComponent, removeComponent |
| Methods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponent |
|---|
getContext, getLogger, init, setContext, setLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.commons.vfs2.provider.FileProvider |
|---|
createFileSystem, findFile, getConfigBuilder, parseUri |
| Field Detail |
|---|
public static final Collection<Capability> capabilities
| Constructor Detail |
|---|
public DefaultLocalFileProvider()
| Method Detail |
|---|
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()
FileProvider
getCapabilities in interface FileProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||