|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs2.provider.AbstractVfsComponent
org.apache.commons.vfs2.provider.AbstractFileSystem
org.apache.commons.vfs2.impl.VirtualFileSystem
public class VirtualFileSystem
A logical file system, made up of set of junctions, or links, to files from other file systems.
Constructor Summary | |
---|---|
VirtualFileSystem(AbstractFileName rootName,
FileSystemOptions fileSystemOptions)
|
Method Summary | |
---|---|
protected void |
addCapabilities(Collection<Capability> caps)
Adds the capabilities of this file system. |
void |
addJunction(String junctionPoint,
FileObject targetFile)
Adds a junction to this file system. |
protected FileObject |
createFile(AbstractFileName name)
Creates a file object. |
void |
removeJunction(String junctionPoint)
Removes a junction from this file system. |
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileSystem |
---|
addListener, close, closeCommunicationLink, decorateFileObject, doCloseCommunicationLink, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeListener, replicateFile, resolveFile, resolveFile, setAttribute |
Methods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponent |
---|
getContext, getLogger, setContext, setLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VirtualFileSystem(AbstractFileName rootName, FileSystemOptions fileSystemOptions)
Method Detail |
---|
protected void addCapabilities(Collection<Capability> caps)
addCapabilities
in class AbstractFileSystem
protected FileObject createFile(AbstractFileName name) throws Exception
createFile
in class AbstractFileSystem
Exception
public void addJunction(String junctionPoint, FileObject targetFile) throws FileSystemException
addJunction
in interface FileSystem
addJunction
in class AbstractFileSystem
junctionPoint
- The location of the junction.targetFile
- The target file to base the junction on.
FileSystemException
- if an error occurs.public void removeJunction(String junctionPoint) throws FileSystemException
removeJunction
in interface FileSystem
removeJunction
in class AbstractFileSystem
junctionPoint
- The junction to remove.
FileSystemException
- if an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |