public class PureJavaCrc32
extends java.lang.Object
implements java.util.zip.Checksum
This class is copied from hadoop-commons project.
(The initial patch added PureJavaCrc32 was HADOOP-6148)| Constructor and Description |
|---|
PureJavaCrc32()
Create a new PureJavaCrc32 object.
|
public long getValue()
getValue in interface java.util.zip.Checksumpublic void reset()
reset in interface java.util.zip.Checksumpublic void update(byte[] b,
int off,
int len)
update in interface java.util.zip.Checksumpublic final void update(int b)
update in interface java.util.zip.ChecksumCopyright © 2015 The Apache Software Foundation