public class ReportCsvStreamer extends java.lang.Object implements ReportDataStreamHandler
Modifier and Type | Field and Description |
---|---|
private CsvWriter |
csvWriter |
private java.lang.String[] |
data |
private org.joda.time.format.DateTimeFormatter |
dtf |
private java.io.PrintWriter |
out |
private TextRenderer |
textRenderer |
Constructor and Description |
---|
ReportCsvStreamer(java.io.PrintWriter out,
java.util.ResourceBundle bundle) |
Modifier and Type | Method and Description |
---|---|
void |
done()
Indicates that the last of the information has been sent, i.e. the other methods will no longer be called.
|
void |
pointData(ReportDataValue rdv)
Provides a single data value for the current point.
|
void |
startPoint(ReportPointInfo pointInfo)
Called before the data for the given point is provided.
|
private final java.io.PrintWriter out
private TextRenderer textRenderer
private final java.lang.String[] data
private final org.joda.time.format.DateTimeFormatter dtf
private final CsvWriter csvWriter
public ReportCsvStreamer(java.io.PrintWriter out, java.util.ResourceBundle bundle)
public void startPoint(ReportPointInfo pointInfo)
ReportDataStreamHandler
startPoint
in interface ReportDataStreamHandler
public void pointData(ReportDataValue rdv)
ReportDataStreamHandler
pointData
in interface ReportDataStreamHandler
public void done()
ReportDataStreamHandler
done
in interface ReportDataStreamHandler