Class WikiWriter
java.lang.Object
org.nuxeo.ecm.platform.rendering.wiki.WikiWriter
- All Implemented Interfaces:
WikiText
,org.wikimodel.wem.IWikiPrinter
- Direct Known Subclasses:
WikiBlockWriter
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
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected WikiWriter
protected final StringBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
println()
void
void
void
writeTo
(WikiSerializerHandler handler, Writer writer)
-
Field Details
-
LINE_SEP
-
parent
-
segments
-
dynamicSegments
-
sb
-
-
Constructor Details
-
WikiWriter
public WikiWriter() -
WikiWriter
-
-
Method Details
-
print
- Specified by:
print
in interfaceorg.wikimodel.wem.IWikiPrinter
-
println
public void println() -
println
- Specified by:
println
in interfaceorg.wikimodel.wem.IWikiPrinter
-
writeText
-
getParent
-
getBuffer
-
writeTo
- Specified by:
writeTo
in interfaceWikiText
- Throws:
IOException
-