Class XxHashChecksum
- java.lang.Object
-
- software.amazon.awssdk.checksums.internal.XxHashChecksum
-
- All Implemented Interfaces:
Checksum,SdkChecksum
@SdkInternalApi public final class XxHashChecksum extends Object implements SdkChecksum
-
-
Constructor Summary
Constructors Constructor Description XxHashChecksum(ChecksumAlgorithm algorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getChecksumBytes()Returns the computed checksum in a byte array rather than the long provided byChecksum.getValue().longgetValue()voidmark(int readLimit)Allows marking a checksum for checksums that support the ability to mark and reset.voidreset()voidupdate(byte[] b)Updates the current checksum with the specified array of bytes.voidupdate(byte[] b, int off, int len)voidupdate(int b)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.checksums.SdkChecksum
update
-
-
-
-
Constructor Detail
-
XxHashChecksum
public XxHashChecksum(ChecksumAlgorithm algorithm)
-
-
Method Detail
-
update
public void update(byte[] b)
Description copied from interface:SdkChecksumUpdates the current checksum with the specified array of bytes.- Specified by:
updatein interfaceSdkChecksum- Parameters:
b- the array of bytes to update the checksum with
-
getChecksumBytes
public byte[] getChecksumBytes()
Description copied from interface:SdkChecksumReturns the computed checksum in a byte array rather than the long provided byChecksum.getValue().- Specified by:
getChecksumBytesin interfaceSdkChecksum- Returns:
- byte[] containing the checksum
-
mark
public void mark(int readLimit)
Description copied from interface:SdkChecksumAllows marking a checksum for checksums that support the ability to mark and reset.- Specified by:
markin interfaceSdkChecksum- Parameters:
readLimit- the maximum limit of bytes that can be read before the mark position becomes invalid.
-
-