public class MD5FileExtensionImpl extends AbstractMD5HashExtension implements MD5FileExtension
logBY_NAME_COMPARATOR, NAME_EXTRACTORFALSE, TRUE| Constructor and Description |
|---|
MD5FileExtensionImpl(SftpClient client,
RawSftpClient raw,
java.util.Collection<java.lang.String> extra) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getHash(java.lang.String path,
long offset,
long length,
byte[] quickHash) |
doGetHashcheckExtendedReplyBuffer, checkStatus, getClient, getCommandBuffer, getCommandBuffer, getCommandBuffer, getName, isSupported, putTarget, receive, receive, send, sendAndCheckExtendedCommandStatus, sendExtendedCommand, throwStatusException, validateIncomingResponsegetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClientfindByName, getName, getNameList, getNames, ofName, removeByNameall, any, isSupported, ofpublic MD5FileExtensionImpl(SftpClient client, RawSftpClient raw, java.util.Collection<java.lang.String> extra)
public byte[] getHash(java.lang.String path,
long offset,
long length,
byte[] quickHash)
throws java.io.IOException
getHash in interface MD5FileExtensionpath - 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 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