public interface CRC extends Comparable<CRC>
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
|
compareTovoid update(byte[] buffer,
int offset,
int length)
void update(byte data)
void writeCRC(OutputStream out) throws IOException
IOExceptionboolean readAndCheck(InputStream in) throws IOException
in - InputStreamIOExceptionlong getValue()
void reset()
Copyright © 2018 DataWeb Research. All rights reserved.