Class RefdFile

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class RefdFile
    extends java.lang.Object
    implements java.io.Closeable
    A GFile along with a FileSystemRef to keep the filesystem pinned in memory.

    The caller is responsible for closing this object, which releases the FilesystemRef.

    • Constructor Summary

      Constructors 
      Constructor Description
      RefdFile​(FileSystemRef fsRef, GFile file)
      Creates a RefdFile instance, taking ownership of the supplied fsRef.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RefdFile

        public RefdFile​(FileSystemRef fsRef,
                        GFile file)
        Creates a RefdFile instance, taking ownership of the supplied fsRef.
        Parameters:
        fsRef - FileSystemRef that pins the filesystem open
        file - GFile file inside the specified filesystem
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException