Package net.sf.jasperreports.export
Class SimpleCsvExporterConfiguration
- java.lang.Object
-
- net.sf.jasperreports.export.SimpleCommonExportConfiguration
-
- net.sf.jasperreports.export.SimpleExporterConfiguration
-
- net.sf.jasperreports.export.SimpleCsvExporterConfiguration
-
- All Implemented Interfaces:
CommonExportConfiguration,CsvExporterConfiguration,ExporterConfiguration
- Direct Known Subclasses:
SimpleCsvMetadataExporterConfiguration
public class SimpleCsvExporterConfiguration extends SimpleExporterConfiguration implements CsvExporterConfiguration
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from interface net.sf.jasperreports.export.CommonExportConfiguration
PROPERTY_EXPORT_CONFIGURATION_OVERRIDE_REPORT_HINTS
-
Fields inherited from interface net.sf.jasperreports.export.CsvExporterConfiguration
PROPERTY_ESCAPE_FORMULA, PROPERTY_FIELD_DELIMITER, PROPERTY_FIELD_ENCLOSURE, PROPERTY_FORCE_FIELD_ENCLOSURE, PROPERTY_RECORD_DELIMITER, PROPERTY_WRITE_BOM
-
-
Constructor Summary
Constructors Constructor Description SimpleCsvExporterConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetEscapeFormula()Returns a flag that enforces field values containing formula to be escaped in order to be interpreted as pure text.StringgetFieldDelimiter()Returns the string representing the character or sequence of characters to be used to delimit two fields on the same record.StringgetFieldEnclosure()Returns a string representing the character to be used to enclose a field value on a record.BooleangetForceFieldEnclosure()Returns a flag that enforces all exported field values to be enclosed within a pair of enclosure characters (usually a pair of quotes: "").StringgetRecordDelimiter()Returns the string representing the character or sequence of characters to be used to delimit two records.BooleanisWriteBOM()Specifies whether the exporter should put a BOM character at the beginning of the output.voidsetEscapeFormula(Boolean escapeFormula)voidsetFieldDelimiter(String fieldDelimiter)voidsetFieldEnclosure(String fieldEnclosure)voidsetForceFieldEnclosure(Boolean forceFieldEnclosure)voidsetRecordDelimiter(String recordDelimiter)voidsetWriteBOM(Boolean isWriteBOM)-
Methods inherited from class net.sf.jasperreports.export.SimpleCommonExportConfiguration
isOverrideHints, setOverrideHints
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.export.CommonExportConfiguration
isOverrideHints
-
-
-
-
Method Detail
-
getFieldDelimiter
public String getFieldDelimiter()
Description copied from interface:CsvExporterConfigurationReturns the string representing the character or sequence of characters to be used to delimit two fields on the same record.- Specified by:
getFieldDelimiterin interfaceCsvExporterConfiguration- See Also:
CsvExporterConfiguration.PROPERTY_FIELD_DELIMITER
-
setFieldDelimiter
public void setFieldDelimiter(String fieldDelimiter)
-
getFieldEnclosure
public String getFieldEnclosure()
Description copied from interface:CsvExporterConfigurationReturns a string representing the character to be used to enclose a field value on a record. If this is a multi-character string, the first character only will be taken into account. White spaces are not considered. Default value is ".- Specified by:
getFieldEnclosurein interfaceCsvExporterConfiguration- See Also:
CsvExporterConfiguration.PROPERTY_FIELD_ENCLOSURE
-
setFieldEnclosure
public void setFieldEnclosure(String fieldEnclosure)
-
getRecordDelimiter
public String getRecordDelimiter()
Description copied from interface:CsvExporterConfigurationReturns the string representing the character or sequence of characters to be used to delimit two records.- Specified by:
getRecordDelimiterin interfaceCsvExporterConfiguration- See Also:
CsvExporterConfiguration.PROPERTY_RECORD_DELIMITER
-
setRecordDelimiter
public void setRecordDelimiter(String recordDelimiter)
-
isWriteBOM
public Boolean isWriteBOM()
Description copied from interface:CsvExporterConfigurationSpecifies whether the exporter should put a BOM character at the beginning of the output.- Specified by:
isWriteBOMin interfaceCsvExporterConfiguration- See Also:
CsvExporterConfiguration.PROPERTY_WRITE_BOM
-
setWriteBOM
public void setWriteBOM(Boolean isWriteBOM)
-
getForceFieldEnclosure
public Boolean getForceFieldEnclosure()
Description copied from interface:CsvExporterConfigurationReturns a flag that enforces all exported field values to be enclosed within a pair of enclosure characters (usually a pair of quotes: ""). Default value isfalse.- Specified by:
getForceFieldEnclosurein interfaceCsvExporterConfiguration- See Also:
CsvExporterConfiguration.PROPERTY_FORCE_FIELD_ENCLOSURE
-
setForceFieldEnclosure
public void setForceFieldEnclosure(Boolean forceFieldEnclosure)
-
getEscapeFormula
public Boolean getEscapeFormula()
Description copied from interface:CsvExporterConfigurationReturns a flag that enforces field values containing formula to be escaped in order to be interpreted as pure text. Default value isfalse.- Specified by:
getEscapeFormulain interfaceCsvExporterConfiguration- See Also:
CsvExporterConfiguration.PROPERTY_ESCAPE_FORMULA
-
setEscapeFormula
public void setEscapeFormula(Boolean escapeFormula)
-
-