org.jboss.soa.esb.nagios.util
Class CRC32

java.lang.Object
  extended by org.jboss.soa.esb.nagios.util.CRC32

public class CRC32
extends java.lang.Object

CRC32 Implementation Uses lazy-initialization technique, and pre-built value table for accelerating calculations.


Constructor Summary
CRC32()
           
 
Method Summary
static long calculate(byte[] buffer)
          Compute the CRC32 checksum of the provided byte array buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRC32

public CRC32()
Method Detail

calculate

public static long calculate(byte[] buffer)
Compute the CRC32 checksum of the provided byte array buffer.

Parameters:
buffer - - the buffer on which to do the computation
Returns:
the calculated CRC32 checksum