public class CheckFileHandleExtensionImpl extends AbstractCheckFileExtension implements CheckFileHandleExtension
logBY_NAME_COMPARATOR, NAME_EXTRACTORFALSE, TRUE| Constructor and Description |
|---|
CheckFileHandleExtensionImpl(SftpClient client,
RawSftpClient raw,
Collection<String> extras) |
| Modifier and Type | Method and Description |
|---|---|
Pair<String,Collection<byte[]>> |
checkFileHandle(SftpClient.Handle handle,
Collection<String> algorithms,
long startOffset,
long length,
int blockSize) |
doGetHashcheckExtendedReplyBuffer, checkStatus, getClient, getCommandBuffer, getCommandBuffer, getCommandBuffer, getName, isSupported, putTarget, receive, send, sendAndCheckExtendedCommandStatus, sendExtendedCommand, throwStatusExceptiongetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClientfindByName, getName, getNameList, getNames, removeByNameall, any, isSupported, ofpublic CheckFileHandleExtensionImpl(SftpClient client, RawSftpClient raw, Collection<String> extras)
public Pair<String,Collection<byte[]>> checkFileHandle(SftpClient.Handle handle, Collection<String> algorithms, long startOffset, long length, int blockSize) throws IOException
checkFileHandle in interface CheckFileHandleExtensionhandle - Remote file SftpClient.Handle - must be a file and opened for readalgorithms - 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–2017 The Apache Software Foundation. All rights reserved.