|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xwiki.rendering.renderer.printer.DefaultWikiPrinter
public class DefaultWikiPrinter
Printer using a StringBuffer
as the underlying output target.
Constructor Summary | |
---|---|
DefaultWikiPrinter()
The default constructor. |
|
DefaultWikiPrinter(StringBuffer buffer)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultWikiPrinter()
StringBuffer
.
public DefaultWikiPrinter(StringBuffer buffer)
buffer
- the StringBuffer
to where to put the provided String
s.Method Detail |
---|
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 String toString()
toString
in class Object
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |