Package ghidra.formats.gfilesystem
Interface FileSystemProbeConflictResolver
-
public interface FileSystemProbeConflictResolver
A callback interface used to choose which filesystem implementation to use when multiple filesystem types indicate that they can open a container file.
-
-
Field Summary
Fields Modifier and Type Field Description static FileSystemProbeConflictResolver
CHOOSEFIRST
Conflict handler that chooses the first filesystem in the list.static FileSystemProbeConflictResolver
GUI_PICKER
Conflict handler that allows the user to pick the filesystem to use from a GUI list.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FileSystemInfoRec
chooseFSIR(java.util.List<FileSystemInfoRec> factories)
This method should be provided by the actual strategy implementation.default FileSystemInfoRec
resolveFSIR(java.util.List<FileSystemInfoRec> factories)
Picks a singleFileSystemInfoRec
to use when mounting a filesystem.
-
-
-
Field Detail
-
CHOOSEFIRST
static final FileSystemProbeConflictResolver CHOOSEFIRST
Conflict handler that chooses the first filesystem in the list.
-
GUI_PICKER
static final FileSystemProbeConflictResolver GUI_PICKER
Conflict handler that allows the user to pick the filesystem to use from a GUI list.
-
-
Method Detail
-
resolveFSIR
default FileSystemInfoRec resolveFSIR(java.util.List<FileSystemInfoRec> factories)
Picks a singleFileSystemInfoRec
to use when mounting a filesystem.- Parameters:
factories
- aList
ofFileSystemInfoRec
s.- Returns:
- the choosen FSIR, or null
-
chooseFSIR
FileSystemInfoRec chooseFSIR(java.util.List<FileSystemInfoRec> factories)
This method should be provided by the actual strategy implementation.This method will only be called if the list contains more than a single item.
- Parameters:
factories
-List
ofFileSystemInfoRec
, always more than 1 element.- Returns:
- the choosen FSIR, or null
-
-