|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs.provider.AbstractVfsComponent
org.apache.commons.vfs.provider.AbstractFileSystem
org.apache.commons.vfs.impl.VirtualFileSystem
public class VirtualFileSystem
A logical file system, made up of set of junctions, or links, to files from other file systems.
Field Summary | |
---|---|
private java.util.Map |
junctions
|
Constructor Summary | |
---|---|
VirtualFileSystem(FileName rootName,
FileSystemOptions fileSystemOptions)
|
Method Summary | |
---|---|
protected void |
addCapabilities(java.util.Collection caps)
Adds the capabilities of this file system. |
void |
addJunction(java.lang.String junctionPoint,
FileObject targetFile)
Adds a junction to this file system. |
protected FileObject |
createFile(FileName name)
Creates a file object. |
private FileName |
getJunctionForFile(FileName name)
Locates the junction point for the junction containing the given file. |
void |
removeJunction(java.lang.String junctionPoint)
Removes a junction from this file system. |
Methods inherited from class org.apache.commons.vfs.provider.AbstractFileSystem |
---|
addListener, close, closeCommunicationLink, decorateFileObject, doCloseCommunicationLink, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeListener, replicateFile, resolveFile, resolveFile, setAttribute |
Methods inherited from class org.apache.commons.vfs.provider.AbstractVfsComponent |
---|
getContext, getLogger, setContext, setLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.Map junctions
Constructor Detail |
---|
public VirtualFileSystem(FileName rootName, FileSystemOptions fileSystemOptions)
Method Detail |
---|
protected void addCapabilities(java.util.Collection caps)
addCapabilities
in class AbstractFileSystem
protected FileObject createFile(FileName name) throws java.lang.Exception
createFile
in class AbstractFileSystem
java.lang.Exception
public void addJunction(java.lang.String junctionPoint, FileObject targetFile) throws FileSystemException
addJunction
in interface FileSystem
addJunction
in class AbstractFileSystem
junctionPoint
- The point in this file system to add the junction.targetFile
- The file to link to.
FileSystemException
- If this file system does not support junctions, or the junction
point or target file is invalid (the file system may not support
nested junctions, for example).public void removeJunction(java.lang.String junctionPoint) throws FileSystemException
removeJunction
in interface FileSystem
removeJunction
in class AbstractFileSystem
junctionPoint
- The junction to remove.
FileSystemException
- On error removing the junction.private FileName getJunctionForFile(FileName name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |