public class CheckFileNameExtensionImpl extends AbstractCheckFileExtension implements CheckFileNameExtension
log
BY_NAME_COMPARATOR, NAME_EXTRACTOR
FALSE, TRUE
Constructor and Description |
---|
CheckFileNameExtensionImpl(SftpClient client,
RawSftpClient raw,
java.util.Collection<java.lang.String> extras) |
Modifier and Type | Method and Description |
---|---|
java.util.AbstractMap.SimpleImmutableEntry<java.lang.String,java.util.Collection<byte[]>> |
checkFileName(java.lang.String name,
java.util.Collection<java.lang.String> algorithms,
long startOffset,
long length,
int blockSize) |
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
getClient
findByName, findFirstMatchByName, getName, getNameList, getNames, ofName, removeByName, safeCompareByName
all, any, isSupported, of
public CheckFileNameExtensionImpl(SftpClient client, RawSftpClient raw, java.util.Collection<java.lang.String> extras)
public java.util.AbstractMap.SimpleImmutableEntry<java.lang.String,java.util.Collection<byte[]>> checkFileName(java.lang.String name, java.util.Collection<java.lang.String> algorithms, long startOffset, long length, int blockSize) throws java.io.IOException
checkFileName
in interface CheckFileNameExtension
name
- 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.java.io.IOException
- If failed to execute the command