public class CRC8 extends Object implements CRC
| Constructor and Description |
|---|
CRC8() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(CRC o) |
long |
getValue()
Get checksum value.
|
boolean |
readAndCheck(InputStream in)
Read CRC from InputStream and compare it to this.
|
void |
reset()
Reset the checksum to the initial value.
|
String |
toString() |
void |
update(byte data)
Update the CRC value with a byte data.
|
void |
update(byte[] buffer,
int offset,
int length)
Update this CRC with the content of the buffer, from offset, using length bytes.
|
void |
writeCRC(OutputStream out)
Write this CRC to an Output Stream
|
public void update(byte[] buffer,
int offset,
int length)
CRCpublic void update(byte data)
public void writeCRC(OutputStream out) throws IOException
CRCwriteCRC in interface CRCIOExceptionpublic boolean readAndCheck(InputStream in) throws IOException
CRCreadAndCheck in interface CRCin - InputStreamIOExceptionpublic long getValue()
CRCpublic void reset()
CRCpublic int compareTo(CRC o)
compareTo in interface Comparable<CRC>Copyright © 2018 DataWeb Research. All rights reserved.