Package org.apache.commons.vfs.provider
Interface VfsComponentContext
public interface VfsComponentContext
Allows VFS components to access the services they need, such as the file
replicator. A VFS component is supplied with a context as part of its
initialisation.
- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Adam Murdoch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the filesystem manager for the current contextLocates a file replicator for the provider to use.Locates a temporary file store for the provider to use.resolveFile
(String name, FileSystemOptions fileSystemOptions) Locate a file by name.resolveFile
(FileObject baseFile, String name, FileSystemOptions fileSystemOptions) Locate a file by name.toFileObject
(File file) Returns aFileObject
for a local file.
-
Method Details
-
resolveFile
FileObject resolveFile(FileObject baseFile, String name, FileSystemOptions fileSystemOptions) throws FileSystemException Locate a file by name. SeeFileSystemManager.resolveFile(FileObject, String)
for a description of how this works.- Throws:
FileSystemException
-
resolveFile
Locate a file by name. SeeFileSystemManager.resolveFile(String)
for a description of how this works.- Throws:
FileSystemException
-
parseURI
- Throws:
FileSystemException
-
getReplicator
Locates a file replicator for the provider to use.- Throws:
FileSystemException
-
getTemporaryFileStore
Locates a temporary file store for the provider to use.- Throws:
FileSystemException
-
toFileObject
Returns aFileObject
for a local file.- Throws:
FileSystemException
-
getFileSystemManager
FileSystemManager getFileSystemManager()Returns the filesystem manager for the current context- Returns:
- the filesystem manager
-