|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor
org.pentaho.reporting.engine.classic.core.modules.output.csv.CSVProcessor
public class CSVProcessor
The CSVProcessor
coordinates the writing process for the raw CSV output.
CSVWriter
is added to the private copy of the report to handle the output process.
Field Summary | |
---|---|
static String |
CSV_DATAROWNAME
|
static String |
CSV_ENABLE_GROUPFOOTERS
|
static String |
CSV_ENABLE_GROUPHEADERS
|
static String |
CSV_ENABLE_ITEMBANDS
|
static String |
CSV_ENABLE_REPORTFOOTER
|
static String |
CSV_ENABLE_REPORTHEADER
|
static String |
CSV_ENCODING
|
static String |
CSV_SEPARATOR
|
static String |
CSV_WRITE_STATECOLUMNS
|
Constructor Summary | |
---|---|
CSVProcessor(MasterReport report)
Creates a new CSVProcessor . |
|
CSVProcessor(MasterReport report,
String separator)
Creates a new CSVProcessor. |
|
CSVProcessor(MasterReport report,
String separator,
boolean writeDataRowNames)
Creates a new CSVProcessor. |
Method Summary | |
---|---|
Writer |
getWriter()
Returns the writer used in this Processor. |
void |
setWriter(Writer writer)
Defines the writer which should be used to write the contents of the report. |
Methods inherited from class org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor |
---|
addReportProgressListener, close, getConfiguration, getLogicalPageCount, getOutputProcessor, getPhysicalPageCount, isFullStreamingProcessor, isHandleInterruptedState, isPaginated, paginate, processPage, processReport, removeReportProgressListener, setFullStreamingProcessor, setHandleInterruptedState |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CSV_SEPARATOR
public static final String CSV_ENCODING
public static final String CSV_DATAROWNAME
public static final String CSV_WRITE_STATECOLUMNS
public static final String CSV_ENABLE_REPORTHEADER
public static final String CSV_ENABLE_REPORTFOOTER
public static final String CSV_ENABLE_GROUPHEADERS
public static final String CSV_ENABLE_GROUPFOOTERS
public static final String CSV_ENABLE_ITEMBANDS
Constructor Detail |
---|
public CSVProcessor(MasterReport report) throws ReportProcessingException
CSVProcessor
. The processor will use a comma (",") to separate the column values, unless
defined otherwise in the report configuration. The processor creates a private copy of the clone, so that no change
to the original report will influence the report processing. DataRow names are not written.
report
- the report to be processed.
ReportProcessingException
- if the report initialisation failed.public CSVProcessor(MasterReport report, String separator) throws ReportProcessingException
report
- the report to be processed.separator
- the separator string to mark column boundaries.
ReportProcessingException
- if the report initialisation failed.public CSVProcessor(MasterReport report, String separator, boolean writeDataRowNames) throws ReportProcessingException
report
- the report to be processed.separator
- the separator string to mark column boundaries.writeDataRowNames
- controls whether or not the data row names are output.
ReportProcessingException
- if the report initialisation failed.Method Detail |
---|
public Writer getWriter()
public void setWriter(Writer writer)
writer
- the writer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |