public class CRC32 extends Object implements CRC
| Constructor and Description |
|---|
CRC32() |
| 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 with the specified byte
|
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)
CRCpublic 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 © 2017 INSIGHT Centre for Data Analytics. All rights reserved.