public class JRCsvExporter extends JRAbstractCsvExporter<CsvReportConfiguration,CsvExporterConfiguration,JRCsvExporterContext>
JRCsvExporter
is a grid exporter
because it must transform the free-form content of
each page from the source document into a grid-like structure using the special grid layout algorithm.
By default, the CSV exporter uses commas to separate column values and newline
characters to separate rows in the resulting file. However, one can redefine the delimiters
using the two special exporter configuration settings in the
CsvExporterConfiguration
class:
getFieldDelimiter()
getRecordDelimiter()
java.lang.String
values.CsvExporterConfiguration
Modifier and Type | Class and Description |
---|---|
protected class |
JRCsvExporter.ExporterContext |
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.PageRange
BOM_CHARACTER, CSV_EXPORTER_KEY, CSV_EXPORTER_PROPERTIES_PREFIX, DEFAULT_ENCLOSURE, 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, fontUtil, itemConfiguration, jasperPrint, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, rendererUtil, styledTextUtil, textValueClasses
Constructor and Description |
---|
JRCsvExporter() |
JRCsvExporter(JasperReportsContext jasperReportsContext) |
Modifier and Type | Method and Description |
---|---|
protected void |
ensureOutput() |
protected void |
exportPage(JRPrintPage page) |
protected Class<CsvExporterConfiguration> |
getConfigurationInterface() |
protected Class<CsvReportConfiguration> |
getItemConfigurationInterface() |
exportReport, exportReportToWriter, getExporterKey, getExporterPropertiesPrefix, getStyledText, initExport, initReport, 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, 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, setReportContext
public JRCsvExporter()
JRCsvExporter(JasperReportsContext)
public JRCsvExporter(JasperReportsContext jasperReportsContext)
protected Class<CsvExporterConfiguration> getConfigurationInterface()
protected Class<CsvReportConfiguration> getItemConfigurationInterface()
protected void ensureOutput()
ensureOutput
in class JRAbstractExporter<CsvReportConfiguration,CsvExporterConfiguration,WriterExporterOutput,JRCsvExporterContext>
protected void exportPage(JRPrintPage page) throws IOException
exportPage
in class JRAbstractCsvExporter<CsvReportConfiguration,CsvExporterConfiguration,JRCsvExporterContext>
IOException
Copyright © 2016. All rights reserved.