Constructor and Description |
---|
Checksums() |
Modifier and Type | Method and Description |
---|---|
static Checksum |
crc32()
Returns an instance of
Checksum that computes CRC-32 checksums. |
static Checksum |
crc32c()
Returns an instance of
Checksum that computes CRC-32C checksums. |
static Checksum |
newInstance(String className)
Factory method to create an instance of the
Checksum interface. |
public static Checksum crc32()
Checksum
that computes CRC-32 checksums.public static Checksum crc32c()
Checksum
that computes CRC-32C checksums.IllegalStateException
- if invoked on a JDK 8.public static Checksum newInstance(String className)
Checksum
interface.className
- fully qualified class name of the Checksum
implementation.Checksum
instance.NullPointerException
- if className == null
.IllegalStateException
- if an attempt was made to acquire CRC-32C while running on JDK 8.IllegalArgumentException
- if an error occurs while creating a Checksum
instance.ClassCastException
- if created instance does not implement the Checksum
interface.crc32c()
Copyright © 2014-2021 Real Logic Limited. All Rights Reserved.