public class CheckFileNameExtensionImpl extends AbstractCheckFileExtension implements CheckFileNameExtension
NamedResource.Utils
OptionalFeature.Utils
log
BY_NAME_COMPARATOR, NAME_EXTRACTOR
FALSE, TRUE
Constructor and Description |
---|
CheckFileNameExtensionImpl(SftpClient client,
RawSftpClient raw,
Collection<String> extras) |
Modifier and Type | Method and Description |
---|---|
Pair<String,Collection<byte[]>> |
checkFileName(String name,
Collection<String> algorithms,
long startOffset,
long length,
int blockSize) |
doGetHash
checkExtendedReplyBuffer, checkStatus, getClient, getCommandBuffer, getCommandBuffer, getCommandBuffer, getName, isSupported, putTarget, receive, send, sendAndCheckExtendedCommandStatus, sendExtendedCommand, throwStatusException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClient
getName
isSupported
public CheckFileNameExtensionImpl(SftpClient client, RawSftpClient raw, Collection<String> extras)
public Pair<String,Collection<byte[]>> checkFileName(String name, Collection<String> algorithms, long startOffset, long length, int blockSize) throws 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 dataPair
where left=hash algorithm name, right=the calculated
hashes.IOException
- If failed to execute the commandCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.