public class JRCsvMetadataExporter extends JRAbstractCsvExporter<CsvMetadataReportConfiguration,CsvMetadataExporterConfiguration,JRCsvExporterContext>
| Modifier and Type | Class and Description |
|---|---|
protected class |
JRCsvMetadataExporter.ExporterContext |
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.PageRange| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.String> |
columnNames |
static java.lang.String |
PROPERTY_COLUMN_NAME
Property specifying the name of the column that should appear in the CSV export.
|
static java.lang.String |
PROPERTY_DATA
Property that specifies what value to associate with
PROPERTY_COLUMN_NAME. |
static java.lang.String |
PROPERTY_REPEAT_VALUE
Property that specifies whether the value associated with
PROPERTY_COLUMN_NAME should be repeated or not
when it is missing. |
CSV_EXPORTER_KEY, CSV_EXPORTER_PROPERTIES_PREFIX, nature, writerallSelector, crtCompositeConfiguration, crtCompositeItemConfiguration, crtItem, dateFormatCache, EXCEPTION_MESSAGE_KEY_END_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_START_PAGE_INDEX_OUT_OF_RANGE, exporterConfiguration, exporterContext, exporterInput, exporterOutput, filter, itemConfiguration, jasperPrint, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, styledTextUtil| Constructor and Description |
|---|
JRCsvMetadataExporter() |
JRCsvMetadataExporter(JasperReportsContext jasperReportsContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureOutput() |
protected void |
exportPage(JRPrintPage page) |
protected java.lang.Class<CsvMetadataExporterConfiguration> |
getConfigurationInterface() |
protected java.lang.Class<CsvMetadataReportConfiguration> |
getItemConfigurationInterface() |
protected void |
initExport() |
protected void |
initReport() |
protected void |
writeCurrentRow(java.util.Map<java.lang.String,java.lang.String> currentRow,
java.util.Map<java.lang.String,java.lang.String> repeatedValues)
Writes the current row.
|
protected void |
writeReportHeader()
Writes the delimiter-separated column names
|
exportReport, exportReportToWriter, getExporterKey, getExporterPropertiesPrefix, getStyledText, prepareTextcreateFilter, defaultParseNumber, ensureInput, ensureJasperReportsContext, getBooleanCellValue, getCurrentConfiguration, getCurrentItemConfiguration, getCurrentJasperPrint, getCustomHandler, getDateCellValue, getDateFormat, getExporterContext, getExporterInput, getExporterOutput, getHyperlinkProducer, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getPageRange, getParameter, getParameters, getPropertiesUtil, getReportContext, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperPrint, setJasperReportsContext, setOffset, setOffset, setParameter, setParameters, setReportContextpublic static final java.lang.String PROPERTY_COLUMN_NAME
CsvMetadataReportConfiguration.getColumnNames(), if provided.JRPropertiesUtil,
Constant Field Valuespublic static final java.lang.String PROPERTY_REPEAT_VALUE
PROPERTY_COLUMN_NAME should be repeated or not
when it is missing.
The property itself defaults to false.
JRPropertiesUtil,
Constant Field Valuespublic static final java.lang.String PROPERTY_DATA
PROPERTY_COLUMN_NAME.
The property itself defaults to the text value of the report element that this property is assigned to.
JRPropertiesUtil,
Constant Field Valuesprotected java.util.List<java.lang.String> columnNames
public JRCsvMetadataExporter()
public JRCsvMetadataExporter(JasperReportsContext jasperReportsContext)
protected java.lang.Class<CsvMetadataExporterConfiguration> getConfigurationInterface()
protected java.lang.Class<CsvMetadataReportConfiguration> getItemConfigurationInterface()
protected void ensureOutput()
protected void exportPage(JRPrintPage page) throws java.io.IOException
exportPage in class JRAbstractCsvExporter<CsvMetadataReportConfiguration,CsvMetadataExporterConfiguration,JRCsvExporterContext>java.io.IOExceptionprotected void initExport()
protected void initReport()
protected void writeReportHeader()
throws java.io.IOException
java.io.IOExceptionprotected void writeCurrentRow(java.util.Map<java.lang.String,java.lang.String> currentRow,
java.util.Map<java.lang.String,java.lang.String> repeatedValues)
throws java.io.IOException
currentRow - repeatedValues - java.io.IOException© 2001-2010 Jaspersoft Corporation www.jaspersoft.com