final class DefaultVfsComponentContext extends java.lang.Object implements VfsComponentContext
Modifier and Type | Field and Description |
---|---|
private DefaultFileSystemManager |
manager |
Constructor and Description |
---|
DefaultVfsComponentContext(DefaultFileSystemManager manager) |
Modifier and Type | Method and Description |
---|---|
FileSystemManager |
getFileSystemManager()
Returns the file system 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. |
private final DefaultFileSystemManager manager
public DefaultVfsComponentContext(DefaultFileSystemManager manager)
public FileObject resolveFile(FileObject baseFile, java.lang.String name, FileSystemOptions fileSystemOptions) throws FileSystemException
resolveFile
in interface VfsComponentContext
baseFile
- The base FileObject.name
- The name of the file to locate.fileSystemOptions
- The FileSystemOptions.FileSystemException
- if an error occurs.public FileObject resolveFile(java.lang.String name, FileSystemOptions fileSystemOptions) throws FileSystemException
resolveFile
in interface VfsComponentContext
name
- The name of the file to locate.fileSystemOptions
- The FileSystemOptions.FileSystemException
- if an error occurs.public FileName parseURI(java.lang.String uri) throws FileSystemException
VfsComponentContext
parseURI
in interface VfsComponentContext
uri
- The URI String.FileSystemException
- if an error occurs.public FileObject toFileObject(java.io.File file) throws FileSystemException
FileObject
for a local file.toFileObject
in interface VfsComponentContext
file
- The File to convert to a FileObject.FileSystemException
- if an error occurs.public FileReplicator getReplicator() throws FileSystemException
getReplicator
in interface VfsComponentContext
FileSystemException
- if an error occurs.public TemporaryFileStore getTemporaryFileStore() throws FileSystemException
getTemporaryFileStore
in interface VfsComponentContext
FileSystemException
- if an error occurs.public FileSystemManager getFileSystemManager()
getFileSystemManager
in interface VfsComponentContext