public interface CheckFileHandleExtension extends SftpClientExtension
BY_NAME_COMPARATOR, NAME_EXTRACTOR
FALSE, TRUE
Modifier and Type | Method and Description |
---|---|
Map.Entry<String,Collection<byte[]>> |
checkFileHandle(SftpClient.Handle handle,
Collection<String> algorithms,
long startOffset,
long length,
int blockSize) |
findByName, findFirstMatchByName, getName, getNameList, getNames, ofName, removeByName, safeCompareByName
all, any, isSupported, of
getClient
Map.Entry<String,Collection<byte[]>> checkFileHandle(SftpClient.Handle handle, Collection<String> algorithms, long startOffset, long length, int blockSize) throws IOException
handle
- 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 dataMap.Entry
where key=hash algorithm name, value=the
calculated hashes.IOException
- If failed to execute the commandCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.