Interface CheckFileNameExtension

    • Method Detail

      • checkFileName

        Map.Entry<String,​Collection<byte[]>> checkFileName​(String name,
                                                                 Collection<String> algorithms,
                                                                 long startOffset,
                                                                 long length,
                                                                 int blockSize)
                                                          throws IOException
        Parameters:
        name - Remote file name/path
        algorithms - Hash algorithms in preferred order
        startOffset - Start offset of the hash
        length - Length of data to hash - if zero then till EOF
        blockSize - Input block size to calculate individual hashes - if zero the one hash of all the data
        Returns:
        An immutable Map.Entry key left=hash algorithm name, value=the calculated hashes.
        Throws:
        IOException - If failed to execute the command