Class 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
    • Constructor Detail

      • WikiWriter

        public WikiWriter()
      • WikiWriter

        public WikiWriter​(WikiWriter parent)
    • Method Detail

      • 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)