Class 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 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
      • println

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