Class StringTableExporter


  • public class StringTableExporter
    extends java.lang.Object
    Simple exporter exporting table of strings. Format depends at given rowFormatter.
    Author:
    Jakub Kulaviak
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void export​(java.util.List<java.util.List<java.lang.String>> rows)
      Perform export.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringTableExporter

        public StringTableExporter​(java.io.PrintWriter writer,
                                   RowFormatter rowFormatter)
        Constructor.
        Parameters:
        writer - used writer
        rowFormatter - object formatting row from list of objects (in this case strings) to string flushed as line
    • Method Detail

      • export

        public void export​(java.util.List<java.util.List<java.lang.String>> rows)
        Perform export.
        Parameters:
        rows - rows to be exported