Class Crc32cProvider


  • public final class Crc32cProvider
    extends Object
    Utility class to provide different implementations of CRC32C checksum. This class supports the use of: 1. Java-based CRC32C (Java 9+ when available) 2. CRT-based CRC32C (when available) 3. SDK-based CRC32C (as fallback)
    • Method Detail

      • create

        public static SdkChecksum create()
        Tries to create a Java 9-based CRC32C checksum. If it's not available, it tries to create a CRT-based checksum. If both are not available, it falls back to an SDK-based CRC32C checksum.
        Returns:
        An instance of SdkChecksum, based on the first available option.