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.
- Author:
- Commons VFS team
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VirtualFileProvider
public VirtualFileProvider()
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(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.
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.