public class PureJavaCrc32
extends java.lang.Object
implements java.util.zip.Checksum
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.Checksumpublic int getCrc()
public void reset()
reset in interface java.util.zip.Checksumpublic void update(byte[] b,
int off,
int len)
update in interface java.util.zip.Checksumpublic void update(java.nio.ByteBuffer b,
int off,
int len)
public final void update(int b)
update in interface java.util.zip.Checksumpublic final void updateInt(int v)
Copyright © 2015 The Apache Software Foundation