public interface MD5FileExtension extends SftpClientExtension
NamedResource.Utils
OptionalFeature.Utils
BY_NAME_COMPARATOR, NAME_EXTRACTOR
FALSE, TRUE
Modifier and Type | Method and Description |
---|---|
byte[] |
getHash(String path,
long offset,
long length,
byte[] quickHash) |
getClient
getName
isSupported
byte[] getHash(String path, long offset, long length, byte[] quickHash) throws IOException
path
- The (remote) pathoffset
- The offset to start calculating the hashlength
- The number of data bytes to calculate the hash on - if
greater than available, then up to whatever is availablequickHash
- A quick-hash of the 1st 2048 bytes - ignored if null
/emptynull
/empty), or
null
/empty if the quick hash is provided and it does not matchIOException
- If failed to calculate the hashCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.