Class CheckFileNameExtensionImpl

    • Constructor Detail

      • CheckFileNameExtensionImpl

        public CheckFileNameExtensionImpl​(SftpClient client,
                                          RawSftpClient raw,
                                          java.util.Collection<java.lang.String> extras)
    • Method Detail

      • checkFileName

        public java.util.AbstractMap.SimpleImmutableEntry<java.lang.String,​java.util.Collection<byte[]>> checkFileName​(java.lang.String name,
                                                                                                                             java.util.Collection<java.lang.String> algorithms,
                                                                                                                             long startOffset,
                                                                                                                             long length,
                                                                                                                             int blockSize)
                                                                                                                      throws java.io.IOException
        Specified by:
        checkFileName in interface CheckFileNameExtension
        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:
        java.io.IOException - If failed to execute the command