Class CrcCloneOnMarkChecksum
- java.lang.Object
-
- software.amazon.awssdk.checksums.internal.BaseCrcChecksum
-
- software.amazon.awssdk.checksums.internal.CrcCloneOnMarkChecksum
-
- All Implemented Interfaces:
Checksum,SdkChecksum
@SdkInternalApi public final class CrcCloneOnMarkChecksum extends BaseCrcChecksum
Class that provides functionality for combining CRC checksums with mark and reset capabilities.This class is intended for use with checksums that do not provide a cloneable method. It uses combine methods to handle mark and reset operations efficiently.
-
-
Constructor Summary
Constructors Constructor Description CrcCloneOnMarkChecksum(Checksum checksum)
-
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().-
Methods inherited from class software.amazon.awssdk.checksums.internal.BaseCrcChecksum
getChecksum, getValue, mark, reset, update, update
-
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, update
-
-
-
-
Constructor Detail
-
CrcCloneOnMarkChecksum
public CrcCloneOnMarkChecksum(Checksum checksum)
-
-
Method Detail
-
getChecksumBytes
public byte[] getChecksumBytes()
Description copied from interface:SdkChecksumReturns the computed checksum in a byte array rather than the long provided byChecksum.getValue().- Returns:
- byte[] containing the checksum
-
-