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 String
s.public StringBuffer getBuffer()
String
s.protected String getEOL()
public void print(String text)
print
in interface WikiPrinter
text
- print the provided String
.public void println(String text)
println
in interface WikiPrinter
text
- print the provided String
and add a new line.public void clear()
Copyright © 2004–2021 XWiki. All rights reserved.