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 Stringstatic final StringThe exporter key, as used inGenericElementHandlerEnviroment.getElementHandler(JRGenericElementType, String).protected static final Stringstatic final Stringstatic final Stringprotected booleanprotected Stringprotected booleanprotected ExporterNatureprotected intprotected Stringprotected Stringprotected WriterFields 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 voidexportPage(JRPrintPage page) voidPerforms the export.protected voidReturns the properties prefix for the current exporter.getStyledText(JRPrintText textElement) protected voidprotected voidprotected StringprepareText(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:ExporterPerforms the export.- Specified by:
exportReportin interfaceExporter<ExporterInput,RC extends CsvReportConfiguration, C extends CsvExporterConfiguration, WriterExporterOutput> - Specified by:
exportReportin classJRAbstractExporter<RC extends CsvReportConfiguration,C extends CsvExporterConfiguration, WriterExporterOutput, E extends JRExporterContext> - Throws:
JRException
-
exportReportToWriter
- Throws:
JRExceptionIOException
-
exportPage
- Throws:
IOException
-
getStyledText
- Overrides:
getStyledTextin classJRAbstractExporter<RC extends CsvReportConfiguration,C extends CsvExporterConfiguration, WriterExporterOutput, E extends JRExporterContext>
-
prepareText
-
initExport
protected void initExport()- Overrides:
initExportin classJRAbstractExporter<RC extends CsvReportConfiguration,C extends CsvExporterConfiguration, WriterExporterOutput, E extends JRExporterContext>
-
initReport
protected void initReport()- Overrides:
initReportin classJRAbstractExporter<RC extends CsvReportConfiguration,C extends CsvExporterConfiguration, WriterExporterOutput, E extends JRExporterContext>
-
getExporterKey
- Specified by:
getExporterKeyin classJRAbstractExporter<RC extends CsvReportConfiguration,C extends CsvExporterConfiguration, WriterExporterOutput, E extends JRExporterContext>
-
getExporterPropertiesPrefix
Description copied from class:JRAbstractExporterReturns the properties prefix for the current exporter.- Specified by:
getExporterPropertiesPrefixin classJRAbstractExporter<RC extends CsvReportConfiguration,C extends CsvExporterConfiguration, WriterExporterOutput, E extends JRExporterContext> - Returns:
- the properties prefix for the current exporter
-