jonelo.jacksum.algorithm

Class Cksum


public class Cksum
extends AbstractChecksum

A class that can be used to compute the Cksum of a data stream. This is a 100% Java implementation.

Field Summary

protected int[]
crctab
protected int
value

Constructor Summary

Cksum()

Method Summary

byte[]
getByteArray()
long
getValue()
void
reset()
void
update(byte b)
void
update(int b)

Field Details

crctab

protected final int[] crctab

value

protected int value

Constructor Details

Cksum

public Cksum()

Method Details

getByteArray

public byte[] getByteArray()

getValue

public long getValue()

reset

public void reset()

update

public void update(byte b)

update

public void update(int b)