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
Modifier and TypeFieldDescriptionstatic final FileSystemProbeConflictResolver
Conflict handler that chooses the first filesystem in the list.static final FileSystemProbeConflictResolver
Conflict handler that allows the user to pick the filesystem to use from a GUI list. -
Method Summary
Modifier and TypeMethodDescriptionchooseFSIR
(List<FileSystemInfoRec> factories) This method should be provided by the actual strategy implementation.default FileSystemInfoRec
resolveFSIR
(List<FileSystemInfoRec> factories) Picks a singleFileSystemInfoRec
to use when mounting a filesystem.
-
Field Details
-
CHOOSEFIRST
Conflict handler that chooses the first filesystem in the list. -
GUI_PICKER
Conflict handler that allows the user to pick the filesystem to use from a GUI list.
-
-
Method Details
-
resolveFSIR
Picks a singleFileSystemInfoRec
to use when mounting a filesystem.- Parameters:
factories
- aList
ofFileSystemInfoRec
s.- Returns:
- the choosen FSIR, or null
-
chooseFSIR
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
-