jasperreport生成pdf_jasperreport 导出excel_jasperreport json(73)

电脑杂谈  发布时间:2017-02-04 10:28:36  来源:网络整理

Such parameter might be called OUT parameters.

For example, if you want your exporter to send the output it produces to an output stream, you will

supply the java.io.OutputStream object reference to the exporter using a parameter, probably

identified by the dori.jasper.engine.JRExporterParameter.OUTPUT_STREAM constant.

It is recommended to use the public constants of the

dori.jasper.engine.JRExporterParameter class to identify the parameters you set in your

exporters and only if you don't find one available for a particular setting you have to make in your

exporter, to extend this class to add new constants. This can be seen for the

dori.jasper.engine.export.JRXmlExporter, where special parameter identifier where created

by subclassing the dori.jasper.engine.JRExporterParameter class in the

dori.jasper.engine.export.JRXmlExporterParameter class.

You don't have to start from scratch when implementing the exporter intece, because there is a

convenience abstract class called dori.jasper.engine.JRAbstractExporter that at least deals

with parameter management for you.


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-30468-73.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...