|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrefinery.report.targets.csv.CSVProcessor
The CSVProcessor
coordinates the writing process for the raw CSV output.
A CSVWriter
is added to the private copy of the report to handle the output process.
Field Summary | |
static java.lang.String |
CSV_DATAROWNAME
A key for accessing the 'print data row names' flag in the ReportConfiguration . |
static java.lang.String |
CSV_SEPARATOR
A key for accessing the separator string in the ReportConfiguration . |
Constructor Summary | |
CSVProcessor(JFreeReport report)
Creates a new CSVProcessor . |
|
CSVProcessor(JFreeReport report,
java.lang.String separator)
Creates a new CSVProcessor. |
|
CSVProcessor(JFreeReport report,
java.lang.String separator,
boolean writeDataRowNames)
Creates a new CSVProcessor. |
Method Summary | |
protected JFreeReport |
getReport()
Gets the local copy of the report. |
java.io.Writer |
getWriter()
Returns the writer used in this Processor. |
void |
processReport()
Processes the report. |
void |
setWriter(java.io.Writer writer)
Defines the writer which should be used to write the contents of the report. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CSV_SEPARATOR
ReportConfiguration
.
public static final java.lang.String CSV_DATAROWNAME
ReportConfiguration
.
Constructor Detail |
public CSVProcessor(JFreeReport report) throws ReportProcessingException, FunctionInitializeException
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.
FunctionInitializeException
- if the writer initialisation failed.public CSVProcessor(JFreeReport report, java.lang.String separator) throws ReportProcessingException, FunctionInitializeException
report
- the report to be processed.separator
- the separator string to mark column boundaries.
ReportProcessingException
- if the report initialisation failed.
FunctionInitializeException
- if the writer initialisation failed.public CSVProcessor(JFreeReport report, java.lang.String separator, boolean writeDataRowNames) throws ReportProcessingException, FunctionInitializeException
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.
FunctionInitializeException
- if the writer initialization failed.Method Detail |
protected JFreeReport getReport()
public java.io.Writer getWriter()
public void setWriter(java.io.Writer writer)
writer
- the writer.public void processReport() throws ReportProcessingException
ReportProcessingException
- if the report processing failed.
java.lang.IllegalStateException
- if there is no writer defined.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |