public class Md5Checksum extends Object implements SdkChecksum
SdkChecksum
to calculate an MD5 checksum.Constructor and Description |
---|
Md5Checksum() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getChecksumBytes()
Returns the computed checksum in a byte array rather than the long provided by
Checksum.getValue() . |
long |
getValue() |
void |
mark(int readLimit)
Allows marking a checksum for checksums that support the ability to mark and reset.
|
void |
reset() |
void |
update(byte[] b,
int off,
int len) |
void |
update(int b) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forAlgorithm, update, update
public byte[] getChecksumBytes()
SdkChecksum
Checksum.getValue()
.getChecksumBytes
in interface SdkChecksum
public void mark(int readLimit)
SdkChecksum
mark
in interface SdkChecksum
readLimit
- the maximum limit of bytes that can be read before the mark position becomes invalid.Copyright © 2023. All rights reserved.