Class CheckFileNameExtensionImpl
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.sftp.client.extensions.helpers.AbstractSftpClientExtension
org.apache.sshd.sftp.client.extensions.helpers.AbstractCheckFileExtension
org.apache.sshd.sftp.client.extensions.helpers.CheckFileNameExtensionImpl
- All Implemented Interfaces:
NamedResource
,OptionalFeature
,CheckFileNameExtension
,SftpClientExtension
,RawSftpClient
public class CheckFileNameExtensionImpl
extends AbstractCheckFileExtension
implements CheckFileNameExtension
Implements "check-file-name" extension
- See Also:
-
Field Summary
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
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
-
Constructor Summary
ConstructorsConstructorDescriptionCheckFileNameExtensionImpl
(SftpClient client, RawSftpClient raw, Collection<String> extras) -
Method Summary
Modifier and TypeMethodDescriptioncheckFileName
(String name, Collection<String> algorithms, long startOffset, long length, int blockSize) Methods inherited from class org.apache.sshd.sftp.client.extensions.helpers.AbstractCheckFileExtension
doGetHash
Methods inherited from class org.apache.sshd.sftp.client.extensions.helpers.AbstractSftpClientExtension
checkExtendedReplyBuffer, checkStatus, getClient, getCommandBuffer, getCommandBuffer, getCommandBuffer, getName, isSupported, putTarget, receive, receive, receive, send, sendAndCheckExtendedCommandStatus, sendExtendedCommand, throwStatusException, validateIncomingResponse
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
-
Constructor Details
-
CheckFileNameExtensionImpl
-
-
Method Details
-
checkFileName
public AbstractMap.SimpleImmutableEntry<String,Collection<byte[]>> checkFileName(String name, Collection<String> algorithms, long startOffset, long length, int blockSize) throws IOException - Specified by:
checkFileName
in interfaceCheckFileNameExtension
- 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
-