Class CsvPrinter

java.lang.Object
clazzfish.sample.spi.CsvPrinter
All Implemented Interfaces:
CsvXPorter

public class CsvPrinter extends Object implements CsvXPorter
The class CsvPrinter is an example for an implementation of the CsvXPorter interface. It just prints the dead classes of the clazzfish.sample package to stdout.
Since:
2.5 (01.03.25)
Author:
oboehm
  • Constructor Details

    • CsvPrinter

      public CsvPrinter()
  • Method Details

    • getURI

      public URI getURI()
      Description copied from interface: CsvXPorter
      Simple getter for the import and export URI.
      Specified by:
      getURI in interface CsvXPorter
      Returns:
      URI
    • withURI

      public CsvPrinter withURI(URI csvURI)
      Description copied from interface: CsvXPorter
      Returns a (new) CsvXPorter with new URI.
      Specified by:
      withURI in interface CsvXPorter
      Parameters:
      csvURI - URI of the returned CsvXPorter
      Returns:
      usually a new CsvXPorter
    • exportCSV

      public void exportCSV(URI uri, String csvHeadLine, List<String> csvLines)
      Prints only the dead classes to stdout.
      Specified by:
      exportCSV in interface CsvXPorter
      Parameters:
      uri - print URI (which is ignored)
      csvHeadLine - head line (not needed here)
      csvLines - CSV lines with the class and count infos