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
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected WikiWriterprotected final StringBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprintln()voidvoidvoidwriteTo(WikiSerializerHandler handler, Writer writer)
-
Field Details
-
LINE_SEP
-
parent
-
segments
-
dynamicSegments
-
sb
-
-
Constructor Details
-
WikiWriter
public WikiWriter() -
WikiWriter
-
-
Method Details
-
print
- Specified by:
printin interfaceorg.wikimodel.wem.IWikiPrinter
-
println
public void println() -
println
- Specified by:
printlnin interfaceorg.wikimodel.wem.IWikiPrinter
-
writeText
-
getParent
-
getBuffer
-
writeTo
- Specified by:
writeToin interfaceWikiText- Throws:
IOException
-