public class ChecksumValidator
extends java.lang.Object
| Constructor and Description |
|---|
ChecksumValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
reset() |
void |
update(byte[] buf,
int offset,
int length) |
void |
update(java.nio.ByteBuffer buf,
int length)
Add this byte buffer to the checksum.
|
(package private) void |
validate(long expectedChecksum,
long lsn) |
void |
validate(long expectedChecksum,
long fileNum,
long fileOffset) |
public void reset()
public void update(java.nio.ByteBuffer buf,
int length)
throws ChecksumException
buf - target bufferlength - of dataChecksumExceptionpublic void update(byte[] buf,
int offset,
int length)
void validate(long expectedChecksum,
long lsn)
throws ChecksumException
ChecksumExceptionpublic void validate(long expectedChecksum,
long fileNum,
long fileOffset)
throws ChecksumException
ChecksumExceptionCopyright (c) 2004-2012 Oracle. All rights reserved.