List of usage examples for java.util.zip Checksum interface-usage
From source file ParityChecksum.java
public class ParityChecksum implements Checksum { long checksum = 0; public void update(int b) { int numOneBits = 0; for (int i = 1; i < 256; i *= 2) {
From source file org.apache.hadoop.util.NativeCrc32.java
/** * Wrapper around JNI support code to do checksum computation * natively. */ public class NativeCrc32 implements Checksum { static {