public class MD5Hasher extends Object implements Serializable
Constructor and Description |
---|
MD5Hasher() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes(Document document) |
DocumentBuilder |
getDocumentBuider() |
Document |
getDomDocument(URL url) |
String |
getMD5FromURL(URL url) |
Transformer |
getTransformer() |
String |
MD5(byte[] bytes) |
Document |
trimDocument(Document document) |
public DocumentBuilder getDocumentBuider() throws ParserConfigurationException
ParserConfigurationException
public Transformer getTransformer() throws TransformerConfigurationException, TransformerFactoryConfigurationError
public String getMD5FromURL(URL url) throws SAXException, IOException, TransformerException, NoSuchAlgorithmException
public String MD5(byte[] bytes) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public byte[] getBytes(Document document) throws IOException, TransformerException
IOException
TransformerException
public Document getDomDocument(URL url) throws SAXException, IOException
SAXException
IOException
Copyright © 2011 Nuxeo SA. All Rights Reserved.