|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.org.retep.util.io.CRC16
public final class CRC16
A simple 16bit cyclic redundancy check for a set of bytes
| Constructor Summary | |
|---|---|
CRC16()
|
|
| Method Summary | |
|---|---|
void |
add(byte v)
Add the byte to the CRC |
void |
add(byte[] b)
Add the byte[] to the CRC |
void |
add(byte[] b,
int start,
int length)
Add the byte[] to the CRC |
boolean |
equals(java.lang.Object obj)
|
int |
getValue()
|
int |
hashCode()
|
void |
readExternal(java.io.ObjectInput in)
|
void |
reset()
Reset the CRC |
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CRC16()
| Method Detail |
|---|
public int getValue()
public void reset()
public void add(byte v)
v - byte to addpublic void add(byte[] b)
b -
public void add(byte[] b,
int start,
int length)
b - byte[]start - start index within the arraylength - number of bytes to addpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||