Class Ascii

  • All Implemented Interfaces:
    ICustomPrinter

    public class Ascii
    extends CustomPrinter
    Extension of CustomPrinter for the printing of data in an Ascii style.
    Author:
    Erwan Bocher (CNRS), Sylvain PALOMINOS (UBS 2019)
    • Constructor Detail

      • Ascii

        public Ascii​(StringBuilder builder)
        Constructor.
        Parameters:
        builder - Not null StringBuilder used for building the string.
      • Ascii

        public Ascii()
        Main constructor.
    • Method Detail

      • appendTableLineSeparator

        public void appendTableLineSeparator()
        Description copied from interface: ICustomPrinter
        Append a line separator to the builder.
      • appendTableValue

        public void appendTableValue​(Object value,
                                     ICustomPrinter.CellPosition position)
        Description copied from interface: ICustomPrinter
        Add a single value to the table. Linebreak are automatically generated once the column count is reached.
        Parameters:
        value - Value to add to the table.
      • appendTableHeaderValue

        public void appendTableHeaderValue​(Object value,
                                           ICustomPrinter.CellPosition position)
        Description copied from interface: ICustomPrinter
        Add a header value to the table. Linebreak are automatically generated once the column count is reached.
        Parameters:
        value - Header value to add to the table.
      • appendTableTitle

        public void appendTableTitle​(Object title)
        Description copied from interface: ICustomPrinter
        Add a title to the table.
        Parameters:
        title - Not null title to add to the table.