public class VirtualFileProvider extends AbstractVfsContainer
Constructor and Description |
---|
VirtualFileProvider() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
closeFileSystem(FileSystem filesystem)
Close a VirtualFileSystem by removing it from the
#components list of this provider. |
FileObject |
createFileSystem(FileObject rootFile)
Creates a virtual file system, with the supplied file as its root.
|
FileObject |
createFileSystem(java.lang.String rootUri)
Creates an empty virtual file system.
|
addComponent, close, removeComponent
getContext, getLogger, init, setContext, setLogger
public FileObject createFileSystem(FileObject rootFile) throws FileSystemException
rootFile
- The root of the file system.FileSystemException
- if an error occurs.public FileObject createFileSystem(java.lang.String rootUri) throws FileSystemException
rootUri
- The root of the file system.FileSystemException
- if an error occurs.void closeFileSystem(FileSystem filesystem)
#components
list of this provider.
This gets called from DefaultFileManager#_closeFileSystem.
filesystem
- the file system remembered by this provider.