Class WriterWikiPrinter
- java.lang.Object
-
- org.xwiki.rendering.renderer.printer.WriterWikiPrinter
-
- All Implemented Interfaces:
WikiPrinter
public class WriterWikiPrinter extends Object implements WikiPrinter
Printer using aWriter
as the underlying output target.- Since:
- 6.2M1
- Version:
- $Id: 7f5170ac8830bec6b4969db30ca1410dcec55a1b $
-
-
Constructor Summary
Constructors Constructor Description WriterWikiPrinter(Writer writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getEOL()
This method is protected to allow classes extending this one to override what a new line is.Writer
getWriter()
void
print(String text)
void
println(String text)
String
toString()
-
-
-
Constructor Detail
-
WriterWikiPrinter
public WriterWikiPrinter(Writer writer)
- Parameters:
writer
- the writer
-
-
Method Detail
-
getWriter
public Writer getWriter()
- Returns:
- the writer
-
getEOL
protected String getEOL()
This method is protected to allow classes extending this one to override what a new line is.- Returns:
- a new line symbols
-
print
public void print(String text)
- Specified by:
print
in interfaceWikiPrinter
- Parameters:
text
- print the providedString
.
-
println
public void println(String text)
- Specified by:
println
in interfaceWikiPrinter
- Parameters:
text
- print the providedString
and add a new line.
-
-