Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.rendering.wiki
Class WikiWriter

java.lang.Object
  extended by 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

Constructor Summary
WikiWriter()
           
WikiWriter(WikiWriter parent)
           
 
Method Summary
 StringBuilder getBuffer()
           
 WikiWriter getParent()
           
 void print(String str)
           
 void println()
           
 void println(String str)
           
 void writeText(WikiText text)
           
 void writeTo(WikiSerializerHandler handler, Writer writer)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.