public class PureJavaCrc32
extends java.lang.Object
implements com.github.tjake.ICRC32
This class is copied from hadoop-commons project and retains that formatting.
(The initial patch added PureJavaCrc32 was HADOOP-6148)
Constructor and Description |
---|
PureJavaCrc32()
Create a new PureJavaCrc32 object.
|
Modifier and Type | Method and Description |
---|---|
int |
getCrc() |
long |
getValue() |
void |
reset() |
void |
update(byte[] b,
int off,
int len) |
void |
update(java.nio.ByteBuffer b,
int off,
int len) |
void |
update(int b) |
void |
updateInt(int v) |
public long getValue()
getValue
in interface java.util.zip.Checksum
public int getCrc()
getCrc
in interface com.github.tjake.ICRC32
public void reset()
reset
in interface java.util.zip.Checksum
public void update(byte[] b, int off, int len)
update
in interface java.util.zip.Checksum
public void update(java.nio.ByteBuffer b, int off, int len)
update
in interface com.github.tjake.ICRC32
public final void update(int b)
update
in interface java.util.zip.Checksum
public final void updateInt(int v)
updateInt
in interface com.github.tjake.ICRC32
Copyright © 2018 The Apache Software Foundation