Class 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 (Wed, 29 Nov 2006) $
    Author:
    Adam Murdoch
    • Method Detail

      • addCapabilities

        protected void addCapabilities​(java.util.Collection caps)
        Adds the capabilities of this file system.
        Specified by:
        addCapabilities in class AbstractFileSystem
      • createFile

        protected FileObject createFile​(FileName name)
                                 throws java.lang.Exception
        Creates a file object. This method is called only if the requested file is not cached.
        Specified by:
        createFile in class AbstractFileSystem
        Throws:
        java.lang.Exception
      • addJunction

        public void addJunction​(java.lang.String junctionPoint,
                                FileObject targetFile)
                         throws FileSystemException
        Adds a junction to this file system.
        Specified by:
        addJunction in interface FileSystem
        Overrides:
        addJunction in class AbstractFileSystem
        Parameters:
        junctionPoint - The point in this file system to add the junction.
        targetFile - The file to link to.
        Throws:
        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).