Example usage for java.util.zip Checksum interface-usage

List of usage examples for java.util.zip Checksum interface-usage

Introduction

In this page you can find the example usage for java.util.zip Checksum interface-usage.

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 {