Package ghidra.formats.gfilesystem
Class FileSystemRef
java.lang.Object
ghidra.formats.gfilesystem.FileSystemRef
- All Implemented Interfaces:
Closeable
,AutoCloseable
A handle to a
GFileSystem
which allows tracking the current users of the filesystem.
Instances must be closed
when not needed anymore, and should not be
shared across threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this reference, releasing it from theFileSystemRefManager
.dup()
Creates a duplicate ref.void
finalize()
GFileSystem
this ref points to.boolean
isClosed()
Returns true if this ref wasclosed
.
-
Method Details
-
dup
Creates a duplicate ref.- Returns:
- a new duplicate
FileSystemRef
-
getFilesystem
GFileSystem
this ref points to.- Returns:
GFileSystem
this ref points to.
-
close
public void close()Closes this reference, releasing it from theFileSystemRefManager
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
isClosed
public boolean isClosed()Returns true if this ref wasclosed
.- Returns:
- boolean true if this ref was closed.
-
finalize
public void finalize()
-