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 Summary |
protected static org.apache.log4j.Logger |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.log4j.Logger log
CleanTextRenderer
public CleanTextRenderer(WikiContext context,
WikiDocument doc)
- Create a renderer.
- Parameters:
context
- doc
-
getString
public String getString()
throws IOException
- Renders and returns the end result.
- Specified by:
getString
in class WikiRenderer
- Returns:
- A rendered string.
- Throws:
IOException
- If rendering fails.
Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.