org.apache.hadoop.util
Class ChecksumUtil
java.lang.Object
org.apache.hadoop.util.ChecksumUtil
public class ChecksumUtil
- extends Object
Method Summary |
static void |
updateChunkChecksum(byte[] buf,
int checksumOff,
int dataOff,
int dataLen,
DataChecksum checksum)
updates the checksum for a buffer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChecksumUtil
public ChecksumUtil()
updateChunkChecksum
public static void updateChunkChecksum(byte[] buf,
int checksumOff,
int dataOff,
int dataLen,
DataChecksum checksum)
throws IOException
- updates the checksum for a buffer
- Parameters:
buf
- - buffer to update the checksum inchunkOff
- - offset in the buffer where the checksum is to updatedataOff
- - offset in the buffer of the datadataLen
- - length of data to compute checksum on
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation