org.apache.commons.vfs2.impl
Class VirtualFileProvider

java.lang.Object
  extended by org.apache.commons.vfs2.provider.AbstractVfsComponent
      extended by org.apache.commons.vfs2.provider.AbstractVfsContainer
          extended by org.apache.commons.vfs2.impl.VirtualFileProvider
All Implemented Interfaces:
VfsComponent

public class VirtualFileProvider
extends AbstractVfsContainer

A virtual filesystem provider.

Author:
Commons VFS team

Constructor Summary
VirtualFileProvider()
           
 
Method Summary
 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.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.