public interface MD5HandleExtension extends SftpClientExtension
BY_NAME_COMPARATOR, NAME_EXTRACTORFALSE, TRUE| Modifier and Type | Method and Description |
|---|---|
byte[] |
getHash(SftpClient.Handle handle,
long offset,
long length,
byte[] quickHash) |
getClientfindByName, getName, getNameList, getNames, ofName, removeByNameall, any, isSupported, ofbyte[] getHash(SftpClient.Handle handle, long offset, long length, byte[] quickHash) throws java.io.IOException
handle - The (remote) file Handleoffset - The offset to start calculating the hashlength - The number of data bytes to calculate the hash on - if greater than available, then up to
whatever is availablequickHash - A quick-hash of the 1st 2048 bytes - ignored if null/emptynull/empty), or null/empty if
the quick hash is provided and it does not matchjava.io.IOException - If failed to calculate the hash