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 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 - the GFile
        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 available
        monitor - TaskMonitor
        Returns:
        MD5 hash as a string
        Throws:
        CancelledException - if cancelled
        java.io.IOException - if error