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)
CRC
public void update(byte data)
CRC
public void writeCRC(OutputStream out) throws IOException
CRC
writeCRC
in interface CRC
IOException
public boolean readAndCheck(InputStream in) throws IOException
CRC
readAndCheck
in interface CRC
in
- InputStreamIOException
public long getValue()
CRC
public void reset()
CRC
public int compareTo(CRC o)
compareTo
in interface Comparable<CRC>
Copyright © 2017 INSIGHT Centre for Data Analytics. All rights reserved.