X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=trunk%2Fcrawler%2Fkiss%2Fsrc%2Forg%2Fwamblee%2Fcrawler%2Fkiss%2Fnotification%2FNotifier.java;h=eda91ba9c200881cabd5120e29834772a99e5bcc;hb=4819218c6211c7ff0bcd4646c10b891abfc1a020;hp=ef35b6d4faae7e7afd36010cffced4322efef2f3;hpb=1aa8a4b42297af33fe68811cacba7a3721b9ea2d;p=utils diff --git a/trunk/crawler/kiss/src/org/wamblee/crawler/kiss/notification/Notifier.java b/trunk/crawler/kiss/src/org/wamblee/crawler/kiss/notification/Notifier.java index ef35b6d4..eda91ba9 100644 --- a/trunk/crawler/kiss/src/org/wamblee/crawler/kiss/notification/Notifier.java +++ b/trunk/crawler/kiss/src/org/wamblee/crawler/kiss/notification/Notifier.java @@ -15,6 +15,10 @@ */ 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; }