public class DefaultWikiPrinter extends Object implements WikiPrinter
StringBuffer as the underlying output target.| Constructor and Description |
|---|
DefaultWikiPrinter()
The default constructor.
|
DefaultWikiPrinter(StringBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes the buffer's content which allows the printer to be reused.
|
StringBuffer |
getBuffer() |
protected String |
getEOL()
This method is protected to allow classes extending this one to override what a new line is.
|
void |
print(String text) |
void |
println(String text) |
String |
toString() |
public DefaultWikiPrinter()
StringBuffer.public DefaultWikiPrinter(StringBuffer buffer)
buffer - the StringBuffer to where to put the provided Strings.public StringBuffer getBuffer()
Strings.protected String getEOL()
public void print(String text)
print in interface WikiPrintertext - print the provided String.public void println(String text)
println in interface WikiPrintertext - print the provided String and add a new line.public void clear()
Copyright © 2004–2019 XWiki. All rights reserved.