Class RamFileSystem

    • Constructor Detail

      • RamFileSystem

        protected RamFileSystem​(FileName rootName,
                                FileSystemOptions fileSystemOptions)
        Parameters:
        rootName - The root file name.
        fileSystemOptions - The FileSystem options.
    • Method Detail

      • createFile

        protected FileObject createFile​(AbstractFileName name)
                                 throws java.lang.Exception
        Description copied from class: AbstractFileSystem
        Creates a file object.

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

        Specified by:
        createFile in class AbstractFileSystem
        Parameters:
        name - name referencing the new file.
        Returns:
        new created FileObject.
        Throws:
        java.lang.Exception - might throw an Exception, which is then wrapped in FileSystemException.
      • addCapabilities

        protected void addCapabilities​(java.util.Collection<Capability> caps)
        Description copied from class: AbstractFileSystem
        Adds the capabilities of this file system.
        Specified by:
        addCapabilities in class AbstractFileSystem
        Parameters:
        caps - collections of Capabilities, can be immutable.