Class RamFileSystem

    • Constructor Detail

      • RamFileSystem

        protected RamFileSystem​(FileName rootName,
                                FileSystemOptions fileSystemOptions)
        Constructs a new instance.
        Parameters:
        rootName - The root file name of this file system.
        fileSystemOptions - Options to build this file system.
    • Method Detail

      • attach

        public void attach​(RamFileObject ramFileObject)
        Attaches this instance to the given RamFileObject.
        Parameters:
        ramFileObject - A RAM file object.
      • close

        public void close()
        Close the RAMFileSystem.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface VfsComponent
        Overrides:
        close in class AbstractFileSystem
      • 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.