net.sourceforge.groboutils.codecoverage.v2.util
Class ChecksumUtil

java.lang.Object
  extended bynet.sourceforge.groboutils.codecoverage.v2.util.ChecksumUtil

public class ChecksumUtil
extends java.lang.Object

A "universal" method to extract a checksum from the various kinds of data the codecoverage package needs.

This is made such that the equivalent types between the BCEL library and JDI library return the same CRC.

Version:
Feb 3, 2002
Author:
Matt Albrecht groboclown@users.sourceforge.net

Field Summary
protected static ChecksumUtil s_instance
           
protected  java.util.Comparator StringCollator
           
 
Constructor Summary
protected ChecksumUtil()
          Creates a new finder using the default (system) classpath.
 
Method Summary
 long checksum(byte[] buff)
           
protected  java.util.zip.Checksum createChecksum()
           
static ChecksumUtil getInstance()
           
protected  void update(java.util.zip.Checksum crc, byte[] buff)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_instance

protected static ChecksumUtil s_instance

StringCollator

protected final java.util.Comparator StringCollator
Constructor Detail

ChecksumUtil

protected ChecksumUtil()
Creates a new finder using the default (system) classpath.

Method Detail

getInstance

public static ChecksumUtil getInstance()

checksum

public long checksum(byte[] buff)

createChecksum

protected java.util.zip.Checksum createChecksum()

update

protected void update(java.util.zip.Checksum crc,
                      byte[] buff)


Copyright © 2001-2003 by The GroboUtils Project