(no commit message)
[utils] / trunk / crawler / kiss / src / org / wamblee / crawler / kiss / notification / Notifier.java
index ef35b6d4faae7e7afd36010cffced4322efef2f3..eda91ba9c200881cabd5120e29834772a99e5bcc 100644 (file)
  */
 package org.wamblee.crawler.kiss.notification;
 
+import java.io.IOException;
+
+import javax.xml.transform.TransformerException;
+
 import org.dom4j.Element;
 
 /**
@@ -30,4 +34,18 @@ public interface Notifier {
      *            Report to send.
      */
     void send(Element aReport) throws NotificationException;
+    
+    /**
+     * Converts the report to html.
+     * @param aReport Report to convert.
+     * @return
+     */
+    String asHtml(Element aReport) throws IOException, TransformerException;
+    
+    /**
+     * Converts the report to text.
+     * @param aReport Report to convert.
+     * @return
+     */
+    String asText(Element aReport) throws IOException, TransformerException;
 }