com.ecyrd.jspwiki.htmltowiki
Class HtmlStringToWikiTranslator

java.lang.Object
  extended by com.ecyrd.jspwiki.htmltowiki.HtmlStringToWikiTranslator

public class HtmlStringToWikiTranslator
extends Object

Converting Html to Wiki Markup with NekoHtml for converting html to xhtml and Xhtml2WikiTranslator for converting xhtml to Wiki Markup.

Author:
Sebastian Baltes (sbaltes@gmx.com)

Constructor Summary
HtmlStringToWikiTranslator()
           
 
Method Summary
static String element2String(Element element)
           
 String translate(String html)
           
 String translate(String html, WikiContext wikiContext)
           
 String translate(String html, XHtmlToWikiConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlStringToWikiTranslator

public HtmlStringToWikiTranslator()
Method Detail

translate

public String translate(String html)
                 throws JDOMException,
                        IOException
Throws:
JDOMException
IOException

translate

public String translate(String html,
                        WikiContext wikiContext)
                 throws JDOMException,
                        IOException
Throws:
JDOMException
IOException

translate

public String translate(String html,
                        XHtmlToWikiConfig config)
                 throws JDOMException,
                        IOException
Throws:
JDOMException
IOException

element2String

public static String element2String(Element element)