Class CSVExport

java.lang.Object
org.deltava.service.logbook.LogbookExport
org.deltava.service.logbook.CSVExport
Direct Known Subclasses:
DefaultCSVExport, VolantaCSVExport

abstract class CSVExport extends LogbookExport
An abstract log book export class to generate CSV-formatted log books.
Since:
10.3
Version:
10.3
Author:
Luke
  • Constructor Details

    • CSVExport

      protected CSVExport(String hdr)
      Creates the exporter.
      Parameters:
      hdr - the CSV header
  • Method Details

    • writeln

      protected void writeln(CharSequence data)
      Writes a string to the output buffer, terminated with a newline.
      Parameters:
      data - the data
    • getContentType

      public final String getContentType()
      Description copied from class: LogbookExport
      Returns the content type of the output.
      Specified by:
      getContentType in class LogbookExport
      Returns:
      the MIME type
    • getExtension

      public final String getExtension()
      Description copied from class: LogbookExport
      Returns the default file extension of the output.
      Specified by:
      getExtension in class LogbookExport
      Returns:
      the file extension
    • toString

      public final String toString()
      Overrides:
      toString in class Object