org.metasyntactic.utilities
Class StreamUniqueIdentifier

java.lang.Object
  |
  +--org.metasyntactic.utilities.StreamUniqueIdentifier

public class StreamUniqueIdentifier
extends java.lang.Object

The serialVersionUID is computed using the signature of a stream of bytes that reflect the class definition. The National Institute of Standards and Technology (NIST) Secure Hash Algorithm (SHA-1) is used to compute a signature for the stream. The first two 32-bit quantities are used to form a 64-bit hash. A java.lang.DataOutputStream is used to convert primitive data types to a sequence of bytes. The values input to the stream are defined by the Java™ Virtual Machine (VM) specification for classes.


Field Summary
protected static java.util.Map classToSUID
           
 
Method Summary
static long compute(java.lang.Class clazz)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classToSUID

protected static java.util.Map classToSUID
Method Detail

compute

public static long compute(java.lang.Class clazz)

main

public static void main(java.lang.String[] args)