|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectjavaFlacEncoder.CRC8
public class CRC8
Class to calculate a CRC8 checksum.
| Field Summary | |
|---|---|
static int |
DEBUG_LEV
For Debugging: Higher level equals more debug statements |
| Constructor Summary | |
|---|---|
CRC8()
Constructor. |
|
| Method Summary | |
|---|---|
byte |
checksum()
Finalize the checksum, and return the value. |
void |
reset()
Resets all stored data, preparing object for a new checksum. |
byte |
updateCRC8(byte[] inSet,
int start,
int end)
Add data to the crc. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int DEBUG_LEV
| Constructor Detail |
|---|
public CRC8()
| Method Detail |
|---|
public byte updateCRC8(byte[] inSet,
int start,
int end)
inSet - Array holding data to checksum.start - Index of array holding first elementend - Index to stop at. Last index used will be end-1.
public byte checksum()
public void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||