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 TypeMethodDescriptionvoidclose()Closes this reference, releasing it from theFileSystemRefManager.dup()Creates a duplicate ref.voidfinalize()GFileSystemthis ref points to.booleanisClosed()Returns true if this ref wasclosed.
-
Method Details
-
dup
Creates a duplicate ref.- Returns:
- a new duplicate
FileSystemRef
-
getFilesystem
GFileSystemthis ref points to.- Returns:
GFileSystemthis ref points to.
-
close
public void close()Closes this reference, releasing it from theFileSystemRefManager.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
isClosed
public boolean isClosed()Returns true if this ref wasclosed.- Returns:
- boolean true if this ref was closed.
-
finalize
public void finalize()
-