Class LegacyDelegatingChecksum
java.lang.Object
software.amazon.awssdk.core.internal.checksums.LegacyDelegatingChecksum
- All Implemented Interfaces:
- Checksum,- SdkChecksum
- Direct Known Subclasses:
- Crc32CChecksum,- Crc32Checksum,- Md5Checksum,- Sha1Checksum,- Sha256Checksum
@SdkInternalApi
public abstract class LegacyDelegatingChecksum
extends Object
implements SdkChecksum
A delegating checksum class to delegate to new checksum implementation for legacy checksum implementations
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]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, int off, int len) voidupdate(int b) Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.core.checksums.SdkChecksumupdate, update
- 
Method Details- 
getChecksumBytespublic byte[] getChecksumBytes()Description copied from interface:SdkChecksumReturns the computed checksum in a byte array rather than the long provided byChecksum.getValue().- Specified by:
- getChecksumBytesin interface- SdkChecksum
- Returns:
- byte[] containing the checksum
 
- 
markpublic 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 interface- SdkChecksum
- Parameters:
- readLimit- the maximum limit of bytes that can be read before the mark position becomes invalid.
 
- 
update
- 
update
- 
getValue
- 
reset
 
-