xacute.util
Class HashHandler

xacute.util.HashHandler

public class HashHandler

This class computes the hash of an XML document. Two equivalent documents should have the same hash. issues: - blank spaces - order or attributes We deliberately ignore DTD -- default values, etc. --


Constructor Summary
HashHandler()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
           
 void endElement(java.lang.String name)
           
 void ignorableWhitespace(char[] ch, int start, int length)
           
static void main(java.lang.String[] args)
           
 void processingInstruction(java.lang.String target, java.lang.String data)
           
 void setDocumentLocator(org.xml.sax.Locator locator)
           
 void startDocument()
           
 void startElement(java.lang.String name, org.xml.sax.AttributeList atts)
           
 java.lang.String toString()
           
 

Constructor Detail

HashHandler

public HashHandler()
            throws java.lang.Exception
Method Detail

toString

public java.lang.String toString()

characters

public void characters(char[] ch,
                       int start,
                       int length)

endDocument

public void endDocument()

endElement

public void endElement(java.lang.String name)

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)

processingInstruction

public void processingInstruction(java.lang.String target,
                                  java.lang.String data)

setDocumentLocator

public void setDocumentLocator(org.xml.sax.Locator locator)

startDocument

public void startDocument()

startElement

public void startElement(java.lang.String name,
                         org.xml.sax.AttributeList atts)

main

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