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 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
  • Field Details

  • Constructor Details

    • WikiWriter

      public WikiWriter()
    • WikiWriter

      public WikiWriter(WikiWriter parent)
  • Method Details

    • print

      public void print(String str)
      Specified by:
      print in interface org.wikimodel.wem.IWikiPrinter
    • println

      public void println()
    • println

      public void println(String str)
      Specified by:
      println in interface org.wikimodel.wem.IWikiPrinter
    • writeText

      public void writeText(WikiText text)
    • getParent

      public WikiWriter getParent()
    • getBuffer

      public StringBuilder getBuffer()
    • writeTo

      public void writeTo(WikiSerializerHandler handler, Writer writer) throws IOException
      Specified by:
      writeTo in interface WikiText
      Throws:
      IOException