Class TablePrinter


  • public class TablePrinter
    extends java.lang.Object
    Class with static methods to print Table objects
    Version:
    2.0
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void printTable​(java.io.PrintStream stream, Table table)
      Prints a Table to a PrintStream
      static void printTable​(Table table)
      Prints a Table to System.out
      static java.util.List<java.lang.String> tableToStringTable​(Table table)
      Creates a List of Strings of lines from a Table
      • Methods inherited from class java.lang.Object

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

      • tableToStringTable

        public static java.util.List<java.lang.String> tableToStringTable​(Table table)
        Creates a List of Strings of lines from a Table
        Parameters:
        table - Table to make the table from
        Returns:
        List of Strings of lines
        See Also:
        TableRow
      • printTable

        public static void printTable​(java.io.PrintStream stream,
                                      Table table)
        Prints a Table to a PrintStream
        Parameters:
        stream - PrintStream to print to
        table - Table to print
      • printTable

        public static void printTable​(Table table)
        Prints a Table to System.out
        Parameters:
        table - Table to print