public class CheckFileNameExtensionImpl extends AbstractCheckFileExtension implements CheckFileNameExtension
logBY_NAME_COMPARATOR, NAME_EXTRACTORFALSE, TRUE| Constructor and Description |
|---|
CheckFileNameExtensionImpl(SftpClient client,
RawSftpClient raw,
Collection<String> extras) |
| Modifier and Type | Method and Description |
|---|---|
AbstractMap.SimpleImmutableEntry<String,Collection<byte[]>> |
checkFileName(String name,
Collection<String> algorithms,
long startOffset,
long length,
int blockSize) |
doGetHashcheckExtendedReplyBuffer, checkStatus, getClient, getCommandBuffer, getCommandBuffer, getCommandBuffer, getName, isSupported, putTarget, receive, receive, receive, send, sendAndCheckExtendedCommandStatus, sendExtendedCommand, throwStatusException, validateIncomingResponsedebug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindByName, findFirstMatchByName, getName, getNameList, getNames, ofName, removeByName, safeCompareByNameall, any, isSupported, ofgetClientpublic CheckFileNameExtensionImpl(SftpClient client, RawSftpClient raw, Collection<String> extras)
public AbstractMap.SimpleImmutableEntry<String,Collection<byte[]>> checkFileName(String name, Collection<String> algorithms, long startOffset, long length, int blockSize) throws IOException
checkFileName in interface CheckFileNameExtensionname - Remote file name/pathalgorithms - Hash algorithms in preferred orderstartOffset - Start offset of the hashlength - Length of data to hash - if zero then till EOFblockSize - Input block size to calculate individual hashes - if zero the one hash of all
the dataMap.Entry key left=hash algorithm name, value=the
calculated hashes.IOException - If failed to execute the commandCopyright © 2018–2021 The Apache Software Foundation. All rights reserved.