Class JRAbstractCsvExporter<RC extends CsvReportConfiguration,C extends CsvExporterConfiguration,E extends JRExporterContext>
java.lang.Object
net.sf.jasperreports.engine.JRAbstractExporter<RC,C,WriterExporterOutput,E>
net.sf.jasperreports.engine.export.JRAbstractCsvExporter<RC,C,E>
- All Implemented Interfaces:
Exporter<ExporterInput,
RC, C, WriterExporterOutput>
- Direct Known Subclasses:
JRCsvExporter
,JRCsvMetadataExporter
public abstract class JRAbstractCsvExporter<RC extends CsvReportConfiguration,C extends CsvExporterConfiguration,E extends JRExporterContext>
extends JRAbstractExporter<RC,C,WriterExporterOutput,E>
Exports a JasperReports document to CSV format.
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.jasperreports.engine.JRAbstractExporter
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.PageRange
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
The exporter key, as used inGenericElementHandlerEnviroment.getElementHandler(JRGenericElementType, String)
.protected static final String
static final String
static final String
protected boolean
protected String
protected boolean
protected ExporterNature
protected int
protected String
protected String
protected Writer
Fields inherited from class net.sf.jasperreports.engine.JRAbstractExporter
allSelector, crtCompositeConfiguration, crtCompositeItemConfiguration, crtItem, dateFormatCache, EXCEPTION_MESSAGE_KEY_EMPTY_INPUT_SOURCE_IN_BATCH_MODE, EXCEPTION_MESSAGE_KEY_END_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_INVALID_IMAGE_NAME, EXCEPTION_MESSAGE_KEY_INVALID_ZOOM_RATIO, EXCEPTION_MESSAGE_KEY_NO_INPUT_SOURCE, EXCEPTION_MESSAGE_KEY_NO_OUTPUT_SPECIFIED, 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, hyperlinkProducerFactory, itemConfiguration, jasperPrint, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, rendererUtil, styledTextUtil, textValueClasses
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
exportPage
(JRPrintPage page) void
Performs the export.protected void
Returns the properties prefix for the current exporter.getStyledText
(JRPrintText textElement) protected void
protected void
protected String
prepareText
(String source) Methods inherited from class net.sf.jasperreports.engine.JRAbstractExporter
checkInterrupted, createFilter, defaultParseNumber, ensureInput, ensureJasperReportsContext, ensureOutput, getBooleanCellValue, getConfigurationInterface, getCurrentConfiguration, getCurrentItemConfiguration, getCurrentJasperPrint, getDateCellValue, getDateFormat, getExporterConfiguration, getExporterContext, getExporterInput, getExporterOutput, getHyperlinkProducer, getItemConfigurationInterface, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getPageRange, getPropertiesUtil, getRendererUtil, getReportContext, getReportExportConfiguration, getRepository, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, insideFrame, reset, resetExportContext, restoreElementOffsets, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperReportsContext, setOffset, setOffset, setReportContext
-
Field Details
-
BOM_CHARACTER
- See Also:
-
DEFAULT_ENCLOSURE
- See Also:
-
ESCAPE_FORMULA_CHARACTERS
- See Also:
-
CSV_EXPORTER_PROPERTIES_PREFIX
- See Also:
-
CSV_EXPORTER_KEY
The exporter key, as used inGenericElementHandlerEnviroment.getElementHandler(JRGenericElementType, String)
.- See Also:
-
fieldDelimiter
-
recordDelimiter
-
forceFieldEnclosure
protected boolean forceFieldEnclosure -
quotes
-
escapeFormula
protected boolean escapeFormula -
writer
-
nature
-
pageIndex
protected int pageIndex
-
-
Constructor Details
-
JRAbstractCsvExporter
public JRAbstractCsvExporter()- See Also:
-
JRAbstractCsvExporter
-
-
Method Details
-
exportReport
Description copied from interface:Exporter
Performs the export.- Specified by:
exportReport
in interfaceExporter<ExporterInput,
RC extends CsvReportConfiguration, C extends CsvExporterConfiguration, WriterExporterOutput> - Specified by:
exportReport
in classJRAbstractExporter<RC extends CsvReportConfiguration,
C extends CsvExporterConfiguration, WriterExporterOutput, E extends JRExporterContext> - Throws:
JRException
-
exportReportToWriter
- Throws:
JRException
IOException
-
exportPage
- Throws:
IOException
-
getStyledText
- Overrides:
getStyledText
in classJRAbstractExporter<RC extends CsvReportConfiguration,
C extends CsvExporterConfiguration, WriterExporterOutput, E extends JRExporterContext>
-
prepareText
-
initExport
protected void initExport()- Overrides:
initExport
in classJRAbstractExporter<RC extends CsvReportConfiguration,
C extends CsvExporterConfiguration, WriterExporterOutput, E extends JRExporterContext>
-
initReport
protected void initReport()- Overrides:
initReport
in classJRAbstractExporter<RC extends CsvReportConfiguration,
C extends CsvExporterConfiguration, WriterExporterOutput, E extends JRExporterContext>
-
getExporterKey
- Specified by:
getExporterKey
in classJRAbstractExporter<RC extends CsvReportConfiguration,
C extends CsvExporterConfiguration, WriterExporterOutput, E extends JRExporterContext>
-
getExporterPropertiesPrefix
Description copied from class:JRAbstractExporter
Returns the properties prefix for the current exporter.- Specified by:
getExporterPropertiesPrefix
in classJRAbstractExporter<RC extends CsvReportConfiguration,
C extends CsvExporterConfiguration, WriterExporterOutput, E extends JRExporterContext> - Returns:
- the properties prefix for the current exporter
-