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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getMD5Hash(GFile file, boolean required, TaskMonitor monitor)
Returns the MD5 hash of the specified file.
-
-
-
Method Detail
-
getMD5Hash
java.lang.String getMD5Hash(GFile file, boolean required, TaskMonitor monitor) throws CancelledException, java.io.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 cancelledjava.io.IOException
- if error
-
-