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. |
BOM_CHARACTER, CSV_EXPORTER_KEY, CSV_EXPORTER_PROPERTIES_PREFIX, nature, pageIndex, writer
allSelector, 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, itemConfiguration, jasperPrint, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, styledTextUtil, textValueClasses
Constructor and Description |
---|
JRCsvMetadataExporter() |
JRCsvMetadataExporter(JasperReportsContext jasperReportsContext) |
Modifier and Type | Method and Description |
---|---|
protected void |
ensureOutput() |
protected void |
exportElements(java.util.List<JRPrintElement> elements,
CsvMetadataReportConfiguration configuration,
java.util.Map<java.lang.String,java.lang.String> currentRow,
java.util.Map<java.lang.String,java.lang.String> repeatedValues,
boolean hasDefinedColumns) |
protected void |
exportPage(JRPrintPage page) |
protected void |
exportText(JRPrintText textElement,
CsvMetadataReportConfiguration configuration,
java.util.Map<java.lang.String,java.lang.String> currentRow,
java.util.Map<java.lang.String,java.lang.String> repeatedValues,
boolean hasDefinedColumns) |
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, prepareText
createFilter, 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, insideFrame, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperPrint, setJasperReportsContext, setOffset, setOffset, setParameter, setParameters, setReportContext
public 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.IOException
protected void exportElements(java.util.List<JRPrintElement> elements, CsvMetadataReportConfiguration configuration, java.util.Map<java.lang.String,java.lang.String> currentRow, java.util.Map<java.lang.String,java.lang.String> repeatedValues, boolean hasDefinedColumns) throws java.io.IOException
java.io.IOException
protected void exportText(JRPrintText textElement, CsvMetadataReportConfiguration configuration, java.util.Map<java.lang.String,java.lang.String> currentRow, java.util.Map<java.lang.String,java.lang.String> repeatedValues, boolean hasDefinedColumns) throws java.io.IOException
java.io.IOException
protected void initExport()
protected void initReport()
protected void writeReportHeader() throws java.io.IOException
java.io.IOException
protected 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-2014 TIBCO Software Inc. www.jaspersoft.com