Class WriterWikiPrinter
- java.lang.Object
-
- org.xwiki.rendering.renderer.printer.WriterWikiPrinter
-
- All Implemented Interfaces:
WikiPrinter
public class WriterWikiPrinter extends Object implements WikiPrinter
Printer using aWriteras 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 StringgetEOL()This method is protected to allow classes extending this one to override what a new line is.WritergetWriter()voidprint(String text)voidprintln(String text)StringtoString()
-
-
-
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:
printin interfaceWikiPrinter- Parameters:
text- print the providedString.
-
println
public void println(String text)
- Specified by:
printlnin interfaceWikiPrinter- Parameters:
text- print the providedStringand add a new line.
-
-