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 dataChecksumException
public void update(byte[] buf, int offset, int length)
void validate(long expectedChecksum, long lsn) throws ChecksumException
ChecksumException
public void validate(long expectedChecksum, long fileNum, long fileOffset) throws ChecksumException
ChecksumException
Copyright (c) 2004-2012 Oracle. All rights reserved.