Serializable
, Comparable<ChecksumValidationMode>
public enum ChecksumValidationMode extends Enum<ChecksumValidationMode>
ChecksumValidationMode
specifies on how to handle provided CRC
checksums compared to calculated CRC checksums.Enum Constant | Description |
---|---|
ENFORCE_VALID_CHECKSUM |
Follow an exception path upon CRC checksum mismatches.
|
IGNORE_BAD_CHECKSUM |
Ignore any CRC checksum mismatches.
|
Modifier and Type | Method | Description |
---|---|---|
static ChecksumValidationMode |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ChecksumValidationMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChecksumValidationMode IGNORE_BAD_CHECKSUM
public static final ChecksumValidationMode ENFORCE_VALID_CHECKSUM
public static ChecksumValidationMode[] values()
for (ChecksumValidationMode c : ChecksumValidationMode.values()) System.out.println(c);
public static ChecksumValidationMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2021. All rights reserved.