RAFLock lock = raf.lockOpen();
try {
raf.pread(fileOffset, buf, offset, length);
raf.pread(fileOffset+length, checksumBuf, 0, checker.checksumLength());
} finally {
lock.unlock();
}
if(!checker.checkChecksum(buf, offset, length, checksumBuf)) {
Arrays.fill(buf, offset, offset+length, (byte)0);
throw new ChecksumFailedException();
}