Package ghidra.formats.gfilesystem
Interface FileSystemProbeConflictResolver
-
public interface FileSystemProbeConflictResolverA 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 FileSystemProbeConflictResolverCHOOSEFIRSTConflict handler that chooses the first filesystem in the list.static FileSystemProbeConflictResolverGUI_PICKERConflict 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 FileSystemInfoRecchooseFSIR(java.util.List<FileSystemInfoRec> factories)This method should be provided by the actual strategy implementation.default FileSystemInfoRecresolveFSIR(java.util.List<FileSystemInfoRec> factories)Picks a singleFileSystemInfoRecto 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 singleFileSystemInfoRecto use when mounting a filesystem.- Parameters:
factories- aListofFileSystemInfoRecs.- 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-ListofFileSystemInfoRec, always more than 1 element.- Returns:
- the choosen FSIR, or null
-
-