|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ecyrd.jspwiki.htmltowiki.HtmlStringToWikiTranslator
public class HtmlStringToWikiTranslator
Converting Html to Wiki Markup with NekoHtml for converting html to xhtml and Xhtml2WikiTranslator for converting xhtml to Wiki Markup.
Constructor Summary | |
---|---|
HtmlStringToWikiTranslator()
Create a new translator. |
Method Summary | |
---|---|
static String |
element2String(Element element)
A static helper method to create HTML from an Element. |
String |
translate(String html)
Translates text from HTML into WikiMarkup without a WikiContext (meaning some things perhaps cannot be translated). |
String |
translate(String html,
WikiContext wikiContext)
Translates text from HTML into WikiMarkup with a WikiContext. |
String |
translate(String html,
XHtmlToWikiConfig config)
Translates text from HTML into WikiMarkup using a specified configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlStringToWikiTranslator()
Method Detail |
---|
public String translate(String html) throws JDOMException, IOException
html
- HTML text to translate
JDOMException
- If parsing fails
IOException
- For other kinds of errors.public String translate(String html, WikiContext wikiContext) throws JDOMException, IOException
html
- HTML text to translatewikiContext
- The WikiContext to use.
JDOMException
- If parsing fails
IOException
- For other kinds of errors.public String translate(String html, XHtmlToWikiConfig config) throws JDOMException, IOException
html
- HTML text to translateconfig
- The configuration to use.
JDOMException
- If parsing fails
IOException
- For other kinds of errors.public static String element2String(Element element)
element
- The element to get HTML from.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |