当前页面:
在线文档首页 >
Spring Framework 2.1.0 API 文档英文版
JasperReportsXlsView (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版
org.springframework.web.servlet.view.jasperreports
Class JasperReportsXlsView
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractView
org.springframework.web.servlet.view.AbstractUrlBasedView
org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView
org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsSingleFormatView
org.springframework.web.servlet.view.jasperreports.JasperReportsXlsView
- All Implemented Interfaces:
- BeanNameAware, InitializingBean, ApplicationContextAware, ServletContextAware, View
public class JasperReportsXlsView
- extends AbstractJasperReportsSingleFormatView
Implementation of AbstractJasperReportsSingleFormatView
that renders report results in XLS format.
- Since:
- 1.1.3
- Author:
- Rob Harrop, Juergen Hoeller
Method Summary |
protected net.sf.jasperreports.engine.JRExporter |
createExporter()
Create a JasperReports exporter for a specific output format,
which will be used to render the report to the HTTP response. |
protected boolean |
useWriter()
Return whether to use a java.io.Writer to write text content
to the HTTP response. |
Methods inherited from class org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView |
convertExporterParameters, convertParameterValue, convertReportData, convertToExporterParameter, exposeLocalizationContext, fillReport, getConvertedExporterParameters, getExporterParameter, getExporterParameters, getJdbcDataSource, getReport, getReportCompiler, getReportData, getReportDataTypes, initApplicationContext, onInit, postProcessReport, renderMergedOutputModel, setExporterParameters, setHeaders, setJdbcDataSource, setReportCompiler, setReportDataKey, setSubReportDataKeys, setSubReportUrls |
Methods inherited from class org.springframework.web.servlet.view.AbstractView |
addStaticAttribute, createRequestContext, exposeModelAsRequestAttributes, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute |
JasperReportsXlsView
public JasperReportsXlsView()
createExporter
protected net.sf.jasperreports.engine.JRExporter createExporter()
- Description copied from class:
AbstractJasperReportsSingleFormatView
- Create a JasperReports exporter for a specific output format,
which will be used to render the report to the HTTP response.
The useWriter
method determines whether the
output will be written as text or as binary content.
- Specified by:
createExporter
in class AbstractJasperReportsSingleFormatView
- See Also:
AbstractJasperReportsSingleFormatView.useWriter()
useWriter
protected boolean useWriter()
- Description copied from class:
AbstractJasperReportsSingleFormatView
- Return whether to use a
java.io.Writer
to write text content
to the HTTP response. Else, a java.io.OutputStream
will be used,
to write binary content to the response.
- Specified by:
useWriter
in class AbstractJasperReportsSingleFormatView
- See Also:
ServletResponse.getWriter()
,
ServletResponse.getOutputStream()
Copyright © 2002-2007 The Spring Framework.