Class DefaultWikiPrinter
java.lang.Object
org.xwiki.rendering.renderer.printer.DefaultWikiPrinter
- All Implemented Interfaces:
WikiPrinter
Printer using a
StringBuffer as the underlying output target.- Since:
- 1.6M1
- Version:
- $Id: 4f0769c6cf8b069a824c7bf4ff363de8196e8225 $
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultWikiPrinter
public DefaultWikiPrinter()The default constructor. It initialize a new emptyStringBuffer. -
DefaultWikiPrinter
- Parameters:
buffer- theStringBufferto where to put the providedStrings.
-
-
Method Details
-
getBuffer
- Returns:
- the buffer containing the printed
Strings.
-
getEOL
This method is protected to allow classes extending this one to override what a new line is.- Returns:
- a new line symbols
-
print
- Specified by:
printin interfaceWikiPrinter- Parameters:
text- print the providedString.
-
println
- Specified by:
printlnin interfaceWikiPrinter- Parameters:
text- print the providedStringand add a new line.
-
toString
-
clear
public void clear()Removes the buffer's content which allows the printer to be reused.
-