public interface ChecksumAlgorithm
Modifier and Type | Method and Description |
---|---|
String |
checksum()
Returns the algorithm end result as string, never
null . |
void |
update(ByteBuffer input)
Updates the checksum algorithm inner state with input.
|
void update(ByteBuffer input)
String checksum()
null
. After invoking this method, this instance should
be discarded and not reused. For new checksum calculation you have to get new instance.
Values returned by this method are handled as "opaque strings", and are used for simple equality checks (matches
or not matches the checksum), and are also persisted in this form (locally to file system but also uploaded as
checksum files). Resolver itself never tries to "decode" or "interpret" this string in any other way.Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.