| Constructor and Description | 
|---|
FileHashImpl(String name,
            String path,
            byte[] hash)
 Creates a file hash. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
byte[] | 
getHash()
 Returns the hash of the content. 
 | 
String | 
getHashAsHex()
 Returns the hash of the content as hex number. 
 | 
String | 
getName()
 Returns the name of the source. 
 | 
String | 
getPath()
 Returns the path in the target system. 
 | 
public FileHashImpl(String name, String path, byte[] hash)
Creates a file hash.
name - The name of the source.path - The path in the target system.hash - The hash of the content.IllegalArgumentException - If any of the parameters are null.public String getName()
FileHashReturns the name of the source.
public String getPath()
FileHashReturns the path in the target system.
public byte[] getHash()
FileHashReturns the hash of the content.
public String getHashAsHex()
FileHashReturns the hash of the content as hex number.
getHashAsHex in interface FileHashCopyright © 2015–2019. All rights reserved.