public class ChecksumValidator extends Object
| Constructor and Description |
|---|
ChecksumValidator(EnvironmentImpl envImpl) |
| Modifier and Type | Method and Description |
|---|---|
void |
reset() |
void |
update(byte[] buf,
int offset,
int length) |
void |
update(ByteBuffer buf,
int length)
Add this byte buffer to the checksum.
|
void |
validate(long expectedChecksum,
long fileNum,
long fileOffset) |
public ChecksumValidator(EnvironmentImpl envImpl)
public void reset()
public void update(ByteBuffer buf, int length) throws ChecksumException
buf - target bufferlength - of dataChecksumExceptionpublic void update(byte[] buf,
int offset,
int length)
public void validate(long expectedChecksum,
long fileNum,
long fileOffset)
throws ChecksumException
ChecksumExceptionCopyright © 2024. All rights reserved.