Package ghidra.formats.gfilesystem
Interface GFileHashProvider
- All Known Implementing Classes:
LocalFileSystem
,LocalFileSystemSub
public interface GFileHashProvider
GFileSystem add-on interface that provides MD5 hashing for file located within the filesystem
-
Method Summary
Modifier and TypeMethodDescriptiongetMD5Hash
(GFile file, boolean required, TaskMonitor monitor) Returns the MD5 hash of the specified file.
-
Method Details
-
getMD5Hash
String getMD5Hash(GFile file, boolean required, TaskMonitor monitor) throws CancelledException, IOException Returns the MD5 hash of the specified file.- Parameters:
file
- theGFile
required
- boolean flag, if true the hash will always be returned, even if it has to be calculated. If false, the hash will be returned if easily availablemonitor
-TaskMonitor
- Returns:
- MD5 hash as a string
- Throws:
CancelledException
- if cancelledIOException
- if error
-