Class BaseCrcChecksum
- java.lang.Object
-
- software.amazon.awssdk.checksums.internal.BaseCrcChecksum
-
- All Implemented Interfaces:
Checksum,SdkChecksum
- Direct Known Subclasses:
CrcCloneOnMarkChecksum
@SdkInternalApi public abstract class BaseCrcChecksum extends Object implements SdkChecksum
Base class for CRC related checksums
-
-
Constructor Summary
Constructors Constructor Description BaseCrcChecksum(Checksum checksum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChecksumgetChecksum()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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.checksums.SdkChecksum
getChecksumBytes, update, update
-
-
-
-
Constructor Detail
-
BaseCrcChecksum
public BaseCrcChecksum(Checksum checksum)
-
-
Method Detail
-
getChecksum
public Checksum getChecksum()
-
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.
-
-