public class MD5HandleExtensionImpl extends AbstractMD5HashExtension implements MD5HandleExtension
log
BY_NAME_COMPARATOR, NAME_EXTRACTOR
FALSE, TRUE
Constructor and Description |
---|
MD5HandleExtensionImpl(SftpClient client,
RawSftpClient raw,
Collection<String> extra) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getHash(SftpClient.Handle handle,
long offset,
long length,
byte[] quickHash) |
doGetHash
checkExtendedReplyBuffer, checkStatus, getClient, getCommandBuffer, getCommandBuffer, getCommandBuffer, getName, isSupported, putTarget, receive, receive, receive, send, sendAndCheckExtendedCommandStatus, sendExtendedCommand, throwStatusException, validateIncomingResponse
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findByName, findFirstMatchByName, getName, getNameList, getNames, ofName, removeByName, safeCompareByName
all, any, isSupported, of
getClient
public MD5HandleExtensionImpl(SftpClient client, RawSftpClient raw, Collection<String> extra)
public byte[] getHash(SftpClient.Handle handle, long offset, long length, byte[] quickHash) throws IOException
getHash
in interface MD5HandleExtension
handle
- The (remote) file Handle
offset
- 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 matchIOException
- If failed to calculate the hashCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.