Package org.apache.wiki.render
Class CleanTextRenderer
java.lang.Object
org.apache.wiki.render.WikiRenderer
org.apache.wiki.render.CleanTextRenderer
public class CleanTextRenderer extends WikiRenderer
A simple renderer that just renders all the text() nodes from the DOM tree. This is very useful for cleaning away all of the XHTML.
- Since:
- 2.4
- 
Field SummaryFields inherited from class org.apache.wiki.render.WikiRendererLINKS_SOURCE, LINKS_TRANSLATION, m_context, m_document
- 
Constructor SummaryConstructors Constructor Description CleanTextRenderer(Context context, WikiDocument doc)Create a renderer.
- 
Method SummaryModifier and Type Method Description java.lang.StringgetString()Renders and returns the end result.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
CleanTextRendererCreate a renderer.- Parameters:
- context- A WikiContext in which the rendering will take place.
- doc- The WikiDocument which shall be rendered.
 
 
- 
- 
Method Details- 
getStringRenders and returns the end result.- Specified by:
- getStringin class- WikiRenderer
- Returns:
- A rendered string.
 
 
-