public class VirtualFileSystem extends AbstractFileSystem
| Constructor and Description |
|---|
VirtualFileSystem(FileName rootName,
FileSystemOptions fileSystemOptions) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
removeJunction(java.lang.String junctionPoint)
Removes a junction from this file system.
|
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, setAttributegetContext, getLogger, setContext, setLoggerpublic VirtualFileSystem(FileName rootName, FileSystemOptions fileSystemOptions)
protected void addCapabilities(java.util.Collection caps)
addCapabilities in class AbstractFileSystemprotected FileObject createFile(FileName name) throws java.lang.Exception
createFile in class AbstractFileSystemjava.lang.Exceptionpublic void addJunction(java.lang.String junctionPoint,
FileObject targetFile)
throws FileSystemException
addJunction in interface FileSystemaddJunction in class AbstractFileSystemjunctionPoint - 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 FileSystemremoveJunction in class AbstractFileSystemjunctionPoint - The junction to remove.FileSystemException - On error removing the junction.