Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.jbpm.core.deployer
Class MD5Hasher

java.lang.Object
  extended by org.nuxeo.ecm.platform.jbpm.core.deployer.MD5Hasher
All Implemented Interfaces:
Serializable

public class MD5Hasher
extends Object
implements Serializable

Author:
Alexandre Russel
See Also:
Serialized Form

Constructor Summary
MD5Hasher()
           
 
Method Summary
 byte[] getBytes(Document document)
           
 DocumentBuilder getDocumentBuider()
           
 Document getDomDocument(URL url)
           
 String getMD5FromURL(URL url)
           
 Transformer getTransformer()
           
 String MD5(byte[] bytes)
           
 Document trimDocument(Document document)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5Hasher

public MD5Hasher()
Method Detail

getDocumentBuider

public DocumentBuilder getDocumentBuider()
                                  throws ParserConfigurationException
Throws:
ParserConfigurationException

getTransformer

public Transformer getTransformer()
                           throws TransformerConfigurationException,
                                  TransformerFactoryConfigurationError
Throws:
TransformerConfigurationException
TransformerFactoryConfigurationError

getMD5FromURL

public String getMD5FromURL(URL url)
                     throws SAXException,
                            IOException,
                            TransformerException,
                            NoSuchAlgorithmException
Throws:
SAXException
IOException
TransformerException
NoSuchAlgorithmException

MD5

public String MD5(byte[] bytes)
           throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

getBytes

public byte[] getBytes(Document document)
                throws IOException,
                       TransformerException
Throws:
IOException
TransformerException

getDomDocument

public Document getDomDocument(URL url)
                        throws SAXException,
                               IOException
Throws:
SAXException
IOException

trimDocument

public Document trimDocument(Document document)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.