Interface MD5FileExtension
- All Superinterfaces:
NamedResource, OptionalFeature, SftpClientExtension, SftpClientHolder
- All Known Implementing Classes:
MD5FileExtensionImpl
- See Also:
-
Field Summary
Fields inherited from interface NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTORFields inherited from interface OptionalFeature
FALSE, TRUE -
Method Summary
Methods inherited from interface NamedResource
getNameMethods inherited from interface OptionalFeature
isSupportedMethods inherited from interface SftpClientHolder
getClient
-
Method Details
-
getHash
- Parameters:
path- The (remote) pathoffset- 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 ifnull/empty- Returns:
- The hash value if the quick hash matches (or
null/empty), ornull/empty if the quick hash is provided and it does not match - Throws:
IOException- If failed to calculate the hash
-