Exporter
.public interface JRExporter<I extends ExporterInput,IC extends ReportExportConfiguration,C extends ExporterConfiguration,O extends ExporterOutput> extends Exporter<I,IC,C,O>
Export customization is realized by using export parameters. Each exporter is able to recognize and use
its own parameters, but there is a subset of predefined parameters that are common to all exporters.
Those are identified by constants in the JRExporterParameter
base class. All parameters are documented
inside the classes where they are defined.
An important aspect is the output type of each exporter. There are three types of exporters depending on the type of output they produce:
All existing exporters fall into two categories depending on the way the content of the documents they produce could be structured:
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getParameter(JRExporterParameter parameter)
Deprecated.
Replaced by
ExporterInput , ExporterConfiguration and ExporterOutput . |
java.util.Map<JRExporterParameter,java.lang.Object> |
getParameters()
Deprecated.
Replaced by
ExporterInput , ExporterConfiguration and ExporterOutput . |
void |
setParameter(JRExporterParameter parameter,
java.lang.Object value)
|
void |
setParameters(java.util.Map<JRExporterParameter,java.lang.Object> parameters)
|
exportReport, getReportContext, setConfiguration, setConfiguration, setExporterInput, setExporterOutput, setReportContext
void setParameter(JRExporterParameter parameter, java.lang.Object value)
Exporter.setExporterInput(net.sf.jasperreports.export.ExporterInput)
,
Exporter.setConfiguration(ExporterConfiguration)
and Exporter.setExporterOutput(net.sf.jasperreports.export.ExporterOutput)
parameter
- the parameter, selected from the static parameters defined by JasperReportsvalue
- the parameter valueJRExporterParameter
java.lang.Object getParameter(JRExporterParameter parameter)
ExporterInput
, ExporterConfiguration
and ExporterOutput
.void setParameters(java.util.Map<JRExporterParameter,java.lang.Object> parameters)
Exporter.setExporterInput(net.sf.jasperreports.export.ExporterInput)
,
Exporter.setConfiguration(ExporterConfiguration)
and Exporter.setExporterOutput(net.sf.jasperreports.export.ExporterOutput)
java.util.Map<JRExporterParameter,java.lang.Object> getParameters()
ExporterInput
, ExporterConfiguration
and ExporterOutput
.© 2001-2014 TIBCO Software Inc. www.jaspersoft.com