Package org.jacoco.report.csv
Class CSVFormatter
- java.lang.Object
-
- org.jacoco.report.csv.CSVFormatter
-
public class CSVFormatter extends java.lang.ObjectReport formatter that will create a single CSV file. By default the filename used will be the name of the session.
-
-
Field Summary
Fields Modifier and Type Field Description private ILanguageNameslanguageNamesprivate java.lang.StringoutputEncoding
-
Constructor Summary
Constructors Constructor Description CSVFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IReportVisitorcreateVisitor(java.io.OutputStream output)Creates a new visitor to write a report to the given stream.ILanguageNamesgetLanguageNames()Returns the language names call-back used in this report.voidsetLanguageNames(ILanguageNames languageNames)Sets the implementation for language name display.voidsetOutputEncoding(java.lang.String outputEncoding)Sets the encoding used for generated CSV document.
-
-
-
Field Detail
-
languageNames
private ILanguageNames languageNames
-
outputEncoding
private java.lang.String outputEncoding
-
-
Method Detail
-
setLanguageNames
public void setLanguageNames(ILanguageNames languageNames)
Sets the implementation for language name display. Java language names are defined by default.- Parameters:
languageNames- converter for language specific names
-
getLanguageNames
public ILanguageNames getLanguageNames()
Returns the language names call-back used in this report.- Returns:
- language names
-
setOutputEncoding
public void setOutputEncoding(java.lang.String outputEncoding)
Sets the encoding used for generated CSV document. Default is UTF-8.- Parameters:
outputEncoding- CSV output encoding
-
createVisitor
public IReportVisitor createVisitor(java.io.OutputStream output) throws java.io.IOException
Creates a new visitor to write a report to the given stream.- Parameters:
output- output stream to write the report to- Returns:
- visitor to emit the report data to
- Throws:
java.io.IOException- in case of problems with the output stream
-
-