jonelo.jacksum.algorithm

Class Crc32


public class Crc32
extends AbstractChecksum

A class that can be used to compute the Cksum of a data stream. This implementation uses the class java.util.zip.CRC32 from the Java Standard API.

Constructor Summary

Crc32()

Method Summary

byte[]
getByteArray()
long
getValue()
void
reset()
void
update(byte b)
void
update(byte[] buffer, int offset, int len)
void
update(int b)

Constructor Details

Crc32

public Crc32()

Method Details

getByteArray

public byte[] getByteArray()

getValue

public long getValue()

reset

public void reset()

update

public void update(byte b)

update

public void update(byte[] buffer,
                   int offset,
                   int len)

update

public void update(int b)