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.toString()
-
Method Details
-
dup
-
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
-
toString
-