Package org.apache.commons.vfs2.impl
Class VirtualFileProvider
- java.lang.Object
-
- org.apache.commons.vfs2.provider.AbstractVfsComponent
-
- org.apache.commons.vfs2.provider.AbstractVfsContainer
-
- org.apache.commons.vfs2.impl.VirtualFileProvider
-
- All Implemented Interfaces:
VfsComponent
public class VirtualFileProvider extends AbstractVfsContainer
A virtual filesystem provider.
-
-
Constructor Summary
Constructors Constructor Description VirtualFileProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileObject
createFileSystem(java.lang.String rootUri)
Creates an empty virtual file system.FileObject
createFileSystem(FileObject rootFile)
Creates a virtual file system, with the supplied file as its root.-
Methods inherited from class org.apache.commons.vfs2.provider.AbstractVfsContainer
addComponent, close, removeComponent
-
Methods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponent
getContext, getLogger, init, setContext, setLogger
-
-
-
-
Constructor Detail
-
VirtualFileProvider
public VirtualFileProvider()
-
-
Method Detail
-
createFileSystem
public FileObject createFileSystem(FileObject rootFile) throws FileSystemException
Creates a virtual file system, with the supplied file as its root.- Parameters:
rootFile
- The root of the file system.- Returns:
- A FileObject in the FileSystem.
- Throws:
FileSystemException
- if an error occurs.
-
createFileSystem
public FileObject createFileSystem(java.lang.String rootUri) throws FileSystemException
Creates an empty virtual file system.- Parameters:
rootUri
- The root of the file system.- Returns:
- A FileObject in the FileSystem.
- Throws:
FileSystemException
- if an error occurs.
-
-