public class

CRC16

extends Object
java.lang.Object
   ↳ sun.misc.CRC16

Class Overview

The CRC-16 class calculates a 16 bit cyclic redundancy check of a set of bytes. This error detecting code is used to determine if bit rot has occured in a byte stream.

Summary

Fields
public int value value contains the currently computed CRC, set it to 0 initally
Public Constructors
CRC16()
Public Methods
void reset()
reset CRC value to 0
void update(byte aByte)
update CRC with byte b
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public int value

value contains the currently computed CRC, set it to 0 initally

Public Constructors

public CRC16 ()

Public Methods

public void reset ()

reset CRC value to 0

public void update (byte aByte)

update CRC with byte b