voldemort.store.readonly.checksum
Class CRC32CheckSum

java.lang.Object
  extended by voldemort.store.readonly.checksum.CheckSum
      extended by voldemort.store.readonly.checksum.CRC32CheckSum

public class CRC32CheckSum
extends CheckSum


Nested Class Summary
 
Nested classes/interfaces inherited from class voldemort.store.readonly.checksum.CheckSum
CheckSum.CheckSumType
 
Constructor Summary
CRC32CheckSum()
           
 
Method Summary
 byte[] getCheckSum()
          Get the checkSum of the buffer till now, after which buffer is reset
 void reset()
          Reset the checksum generator
 void update(byte[] input, int startIndex, int length)
          Update the checksum buffer to include input with startIndex and length.
 
Methods inherited from class voldemort.store.readonly.checksum.CheckSum
checkSumLength, fromString, getInstance, getInstance, toString, update, update, update, updateAndGetCheckSum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRC32CheckSum

public CRC32CheckSum()
Method Detail

getCheckSum

public byte[] getCheckSum()
Description copied from class: CheckSum
Get the checkSum of the buffer till now, after which buffer is reset

Specified by:
getCheckSum in class CheckSum

update

public void update(byte[] input,
                   int startIndex,
                   int length)
Description copied from class: CheckSum
Update the checksum buffer to include input with startIndex and length. Following calls to multiple 'update's you need to call 'getCheckSum' which will reset the buffer as well

Specified by:
update in class CheckSum

reset

public void reset()
Description copied from class: CheckSum
Reset the checksum generator

Specified by:
reset in class CheckSum


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu