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()
FileHash
Returns the name of the source.
public String getPath()
FileHash
Returns the path in the target system.
public byte[] getHash()
FileHash
Returns the hash of the content.
public String getHashAsHex()
FileHash
Returns the hash of the content as hex number.
getHashAsHex
in interface FileHash
Copyright © 2015–2019. All rights reserved.