org.nuxeo.ecm.platform.rendering.wiki
Class WikiWriter
java.lang.Object
org.nuxeo.ecm.platform.rendering.wiki.WikiWriter
- All Implemented Interfaces:
- WikiText, org.wikimodel.wem.IWikiPrinter
- Direct Known Subclasses:
- WikiBlockWriter
public class WikiWriter
- extends java.lang.Object
- implements org.wikimodel.wem.IWikiPrinter, WikiText
Special writer used to split the serialization result in dynamic or static segments.
This way we can generate final output after parsing the entire file. This is needed for example to
generate TOC.
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WikiWriter
public WikiWriter()
WikiWriter
public WikiWriter(WikiWriter parent)
print
public void print(java.lang.String str)
- Specified by:
print
in interface org.wikimodel.wem.IWikiPrinter
println
public void println()
println
public void println(java.lang.String str)
- Specified by:
println
in interface org.wikimodel.wem.IWikiPrinter
writeText
public void writeText(WikiText text)
getParent
public WikiWriter getParent()
getBuffer
public java.lang.StringBuilder getBuffer()
writeTo
public void writeTo(WikiSerializerHandler handler,
java.io.Writer writer)
throws java.io.IOException
- Specified by:
writeTo
in interface WikiText
- Throws:
java.io.IOException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.