|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
VfsComponent.setContext(org.apache.commons.vfs.provider.VfsComponentContext)
Method Summary | |
---|---|
FileSystemManager |
getFileSystemManager()
Returns the filesystem manager for the current context. |
FileReplicator |
getReplicator()
Locates a file replicator for the provider to use. |
TemporaryFileStore |
getTemporaryFileStore()
Locates a temporary file store for the provider to use. |
FileName |
parseURI(java.lang.String uri)
Parse a URI into a FileName. |
FileObject |
resolveFile(FileObject baseFile,
java.lang.String name,
FileSystemOptions fileSystemOptions)
Locate a file by name. |
FileObject |
resolveFile(java.lang.String name,
FileSystemOptions fileSystemOptions)
Locate a file by name. |
FileObject |
toFileObject(java.io.File file)
Returns a FileObject for a local file. |
Method Detail |
---|
FileObject resolveFile(FileObject baseFile, java.lang.String name, FileSystemOptions fileSystemOptions) throws FileSystemException
FileSystemManager.resolveFile(FileObject, String)
for a
description of how this works.
baseFile
- The base FileObject.name
- The name of the file to locate.fileSystemOptions
- The FileSystemOptions.
FileSystemException
- if an error occurs.FileObject resolveFile(java.lang.String name, FileSystemOptions fileSystemOptions) throws FileSystemException
FileSystemManager.resolveFile( String)
for a
description of how this works.
name
- The name of the file to locate.fileSystemOptions
- The FileSystemOptions.
FileSystemException
- if an error occurs.FileName parseURI(java.lang.String uri) throws FileSystemException
uri
- The URI String.
FileSystemException
- if an error occurs.FileReplicator getReplicator() throws FileSystemException
FileSystemException
- if an error occurs.TemporaryFileStore getTemporaryFileStore() throws FileSystemException
FileSystemException
- if an error occurs.FileObject toFileObject(java.io.File file) throws FileSystemException
FileObject
for a local file.
file
- The File to convert to a FileObject.
FileSystemException
- if an error occurs.FileSystemManager getFileSystemManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |