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 List<String> |
columnNames |
static String |
PROPERTY_COLUMN_NAME
Property specifying the name of the column that should appear in the CSV export.
|
static String |
PROPERTY_DATA
Property that specifies what value to associate with
PROPERTY_COLUMN_NAME. |
static String |
PROPERTY_REPEAT_VALUE
Property that specifies whether the value associated with
PROPERTY_COLUMN_NAME should be repeated or not
when it is missing. |
BOM_CHARACTER, CSV_EXPORTER_KEY, CSV_EXPORTER_PROPERTIES_PREFIX, DEFAULT_ENCLOSURE, nature, pageIndex, writerallSelector, crtCompositeConfiguration, crtCompositeItemConfiguration, crtItem, dateFormatCache, EXCEPTION_MESSAGE_KEY_END_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_INVALID_IMAGE_NAME, EXCEPTION_MESSAGE_KEY_INVALID_ZOOM_RATIO, EXCEPTION_MESSAGE_KEY_MIXED_CALLS_NOT_ALLOWED, EXCEPTION_MESSAGE_KEY_OUTPUT_WRITER_ERROR, EXCEPTION_MESSAGE_KEY_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_START_PAGE_INDEX_OUT_OF_RANGE, exporterConfiguration, exporterContext, exporterInput, exporterOutput, filter, fontUtil, itemConfiguration, jasperPrint, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, rendererUtil, styledTextUtil, textValueClasses| Constructor and Description |
|---|
JRCsvMetadataExporter() |
JRCsvMetadataExporter(JasperReportsContext jasperReportsContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureOutput() |
protected void |
exportElements(List<JRPrintElement> elements,
CsvMetadataReportConfiguration configuration,
Map<String,String> currentRow,
Map<String,String> repeatedValues,
boolean hasDefinedColumns) |
protected void |
exportPage(JRPrintPage page) |
protected void |
exportText(JRPrintText textElement,
CsvMetadataReportConfiguration configuration,
Map<String,String> currentRow,
Map<String,String> repeatedValues,
boolean hasDefinedColumns) |
protected Class<CsvMetadataExporterConfiguration> |
getConfigurationInterface() |
protected Class<CsvMetadataReportConfiguration> |
getItemConfigurationInterface() |
protected void |
initExport() |
protected void |
initReport() |
protected void |
writeCurrentRow(Map<String,String> currentRow,
Map<String,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, getRendererUtil, getReportContext, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, insideFrame, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperPrint, setJasperReportsContext, setOffset, setOffset, setParameter, setParameters, setReportContextpublic static final String PROPERTY_COLUMN_NAME
CsvMetadataReportConfiguration.getColumnNames(), if provided.JRPropertiesUtil,
Constant Field Valuespublic static final 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 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 Valuespublic JRCsvMetadataExporter()
public JRCsvMetadataExporter(JasperReportsContext jasperReportsContext)
protected Class<CsvMetadataExporterConfiguration> getConfigurationInterface()
protected Class<CsvMetadataReportConfiguration> getItemConfigurationInterface()
protected void ensureOutput()
protected void exportPage(JRPrintPage page) throws IOException
exportPage in class JRAbstractCsvExporter<CsvMetadataReportConfiguration,CsvMetadataExporterConfiguration,JRCsvExporterContext>IOExceptionprotected void exportElements(List<JRPrintElement> elements, CsvMetadataReportConfiguration configuration, Map<String,String> currentRow, Map<String,String> repeatedValues, boolean hasDefinedColumns) throws IOException
IOExceptionprotected void exportText(JRPrintText textElement, CsvMetadataReportConfiguration configuration, Map<String,String> currentRow, Map<String,String> repeatedValues, boolean hasDefinedColumns) throws IOException
IOExceptionprotected void initExport()
protected void initReport()
protected void writeReportHeader()
throws IOException
IOExceptionprotected void writeCurrentRow(Map<String,String> currentRow, Map<String,String> repeatedValues) throws IOException
currentRow - repeatedValues - IOExceptionCopyright © 2017. All rights reserved.