Class WriterWikiPrinter

java.lang.Object
org.xwiki.rendering.renderer.printer.WriterWikiPrinter
All Implemented Interfaces:
WikiPrinter

public class WriterWikiPrinter extends Object implements WikiPrinter
Printer using a Writer as the underlying output target.
Since:
6.2M1
Version:
$Id: 7f5170ac8830bec6b4969db30ca1410dcec55a1b $
  • Constructor Details

    • WriterWikiPrinter

      public WriterWikiPrinter(Writer writer)
      Parameters:
      writer - the writer
  • Method Details

    • 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 interface WikiPrinter
      Parameters:
      text - print the provided String.
    • println

      public void println(String text)
      Specified by:
      println in interface WikiPrinter
      Parameters:
      text - print the provided String and add a new line.
    • toString

      public String toString()
      Overrides:
      toString in class Object