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:
- Closeable,- AutoCloseable,- VfsComponent
A virtual file system provider.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateFileSystem(String rootUri) Creates an empty virtual file system.createFileSystem(FileObject rootFile) Creates a virtual file system, with the supplied file as its root.Methods inherited from class org.apache.commons.vfs2.provider.AbstractVfsContaineraddComponent, close, removeComponentMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponentgetContext, getLogger, init, setContext, setLogger
- 
Constructor Details- 
VirtualFileProviderpublic VirtualFileProvider()Constructs a new instance.
 
- 
- 
Method Details- 
createFileSystemCreates 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.
 
- 
createFileSystemCreates 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.
 
 
-