Interface CheckFileHandleExtension
-
- All Superinterfaces:
NamedResource
,OptionalFeature
,SftpClientExtension
- All Known Implementing Classes:
CheckFileHandleExtensionImpl
public interface CheckFileHandleExtension extends SftpClientExtension
- See Also:
- DRAFT 09 - section 9.1.2
-
-
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map.Entry<java.lang.String,java.util.Collection<byte[]>>
checkFileHandle(SftpClient.Handle handle, java.util.Collection<java.lang.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.extensions.SftpClientExtension
getClient
-
-
-
-
Method Detail
-
checkFileHandle
java.util.Map.Entry<java.lang.String,java.util.Collection<byte[]>> checkFileHandle(SftpClient.Handle handle, java.util.Collection<java.lang.String> algorithms, long startOffset, long length, int blockSize) throws java.io.IOException
- Parameters:
handle
- Remote fileSftpClient.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 data- Returns:
- An immutable
Map.Entry
where key=hash algorithm name, value=the calculated hashes. - Throws:
java.io.IOException
- If failed to execute the command
-
-