Klasse TableColumnFormatter

java.lang.Object
com.github.hypfvieh.formatter.TableColumnFormatter

public class TableColumnFormatter extends Object
Formats table content into lines of columns of a given character width. After creation of the object with a suitable split function, an optional padding character (defaults to space) and an integer array of column widths, call formatLine(String...) for each String array of content.
  • Konstruktordetails

    • TableColumnFormatter

      public TableColumnFormatter(StringSplitOperator _splitOperator, char _padChar, int... _columnWidths)
    • TableColumnFormatter

      public TableColumnFormatter(StringSplitOperator _splitOperator, int... _columnWidths)
  • Methodendetails

    • formatLine

      public String formatLine(String... _columnContent)
    • fillLine

      public String fillLine(char _char)