Interface CheckFileNameExtension
- All Superinterfaces:
NamedResource
,OptionalFeature
,SftpClientExtension
,SftpClientHolder
- All Known Implementing Classes:
CheckFileNameExtensionImpl
- See Also:
-
Field Summary
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Fields inherited from interface org.apache.sshd.common.OptionalFeature
FALSE, TRUE
-
Method Summary
Modifier and TypeMethodDescriptionMap.Entry<String,
Collection<byte[]>> checkFileName
(String name, Collection<String> algorithms, long startOffset, long length, int blockSize) Methods inherited from interface org.apache.sshd.common.NamedResource
getName
Methods inherited from interface org.apache.sshd.common.OptionalFeature
isSupported
Methods inherited from interface org.apache.sshd.sftp.client.SftpClientHolder
getClient
-
Method Details
-
checkFileName
Map.Entry<String,Collection<byte[]>> checkFileName(String name, Collection<String> algorithms, long startOffset, long length, int blockSize) throws IOException - Parameters:
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 data- Returns:
- An immutable
Map.Entry
key left=hash algorithm name, value=the calculated hashes. - Throws:
IOException
- If failed to execute the command
-