Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.vfs.impl
Class VirtualFileSystem

    java.lang.Object
      org.apache.commons.vfs.provider.AbstractVfsComponent
          org.apache.commons.vfs.provider.AbstractFileSystem
              org.apache.commons.vfs.impl.VirtualFileSystem

All Implemented Interfaces:
  FileSystem, VfsComponent

public class VirtualFileSystem
extends AbstractFileSystem

A logical file system, made up of set of junctions, or links, to files from other file systems.

Version:
  $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Mi, 29 Nov 2006) $
Author:
  Adam Murdoch

Constructor Summary
`VirtualFileSystem(FileName rootName, FileSystemOptions fileSystemOptions)`

Method Summary
`protected void` | `addCapabilities(Collection caps)` Adds the capabilities of this file system.
`void` | `addJunction(String junctionPoint, FileObject targetFile)` Adds a junction to this file system.
`protected FileObject` | `createFile(FileName name)` Creates a file object.
`void` | `removeJunction(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`

Constructor Detail

### VirtualFileSystem

    public VirtualFileSystem(FileName rootName,
                             FileSystemOptions fileSystemOptions)

Method Detail

### addCapabilities

    protected void addCapabilities(Collection caps)

  Adds the capabilities of this file system.

  Specified by:
    `addCapabilities` in class `AbstractFileSystem`

### createFile

    protected FileObject createFile(FileName name)
                             throws Exception

  Creates a file object. This method is called only if the requested file is not cached.

  Specified by:
    `createFile` in class `AbstractFileSystem`
  Throws:
    `Exception`

### addJunction

    public void addJunction(String junctionPoint,
                            FileObject targetFile)
                     throws FileSystemException

  Adds a junction to this file system.

  Specified by:
    `addJunction` in interface `FileSystem`
  Overrides:
    `addJunction` in class `AbstractFileSystem`
  Throws:
    `FileSystemException`

### removeJunction

    public void removeJunction(String junctionPoint)
                        throws FileSystemException

  Removes a junction from this file system.

  Specified by:
    `removeJunction` in interface `FileSystem`
  Overrides:
    `removeJunction` in class `AbstractFileSystem`
  Throws:
    `FileSystemException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002-2006 The Apache Software Foundation. All Rights Reserved.