public enum ChecksumType extends java.lang.Enum<ChecksumType>
Modifier and Type | Method and Description |
---|---|
abstract java.util.zip.Checksum |
newInstance() |
long |
of(byte[] data,
int off,
int len) |
long |
of(java.nio.ByteBuffer buf) |
abstract void |
update(java.util.zip.Checksum checksum,
java.nio.ByteBuffer buf) |
static ChecksumType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChecksumType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChecksumType Adler32
public static final ChecksumType CRC32
public static ChecksumType[] values()
for (ChecksumType c : ChecksumType.values()) System.out.println(c);
public static ChecksumType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract java.util.zip.Checksum newInstance()
public abstract void update(java.util.zip.Checksum checksum, java.nio.ByteBuffer buf)
public long of(java.nio.ByteBuffer buf)
public long of(byte[] data, int off, int len)
Copyright © 2018 The Apache Software Foundation