类 AbstractXlsxStreamingView
java.lang.Object
cn.taketoday.context.support.ApplicationObjectSupport
cn.taketoday.web.view.AbstractView
cn.taketoday.web.view.document.AbstractXlsView
cn.taketoday.web.view.document.AbstractXlsxView
cn.taketoday.web.view.document.AbstractXlsxStreamingView
- 所有已实现的接口:
cn.taketoday.beans.factory.Aware,cn.taketoday.beans.factory.BeanNameAware,cn.taketoday.context.ApplicationContextAware,View
Convenient superclass for Excel document views in the Office 2007 XLSX format,
using POI's streaming variant. Compatible with Apache POI 3.9 and higher.
For working with the workbook in subclasses, see Apache's POI site.
- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
-
字段概要
从类继承的字段 cn.taketoday.web.view.AbstractView
DEFAULT_CONTENT_TYPE从类继承的字段 cn.taketoday.context.support.ApplicationObjectSupport
applicationContext, log, messageSourceAccessor从接口继承的字段 cn.taketoday.web.view.View
RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected org.apache.poi.xssf.streaming.SXSSFWorkbookcreateWorkbook(Map<String, Object> model, RequestContext request) This implementation creates aSXSSFWorkbookfor streaming the XLSX format.protected voidrenderWorkbook(org.apache.poi.ss.usermodel.Workbook workbook, RequestContext response) This implementation disposes of theSXSSFWorkbookwhen done with rendering.从类继承的方法 cn.taketoday.web.view.document.AbstractXlsView
buildExcelDocument, generatesDownloadContent, renderMergedOutputModel从类继承的方法 cn.taketoday.web.view.AbstractView
addStaticAttribute, createMergedOutputModel, createTemporaryOutputStream, exposeModelAsRequestAttributes, formatViewName, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestContextToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposeOutputRedirectModel, setExposePathVariables, setRequestContextAttribute, setResponseContentType, toString, writeToResponse从类继承的方法 cn.taketoday.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContext, unwrapContext, unwrapFactory
-
构造器详细资料
-
AbstractXlsxStreamingView
public AbstractXlsxStreamingView()
-
-
方法详细资料
-
createWorkbook
protected org.apache.poi.xssf.streaming.SXSSFWorkbook createWorkbook(Map<String, Object> model, RequestContext request) This implementation creates aSXSSFWorkbookfor streaming the XLSX format.- 覆盖:
createWorkbook在类中AbstractXlsxView- 参数:
model- the model Maprequest- current HTTP request (for taking the URL or headers into account)- 返回:
- the new
Workbookinstance
-
renderWorkbook
protected void renderWorkbook(org.apache.poi.ss.usermodel.Workbook workbook, RequestContext response) throws IOException This implementation disposes of theSXSSFWorkbookwhen done with rendering.- 覆盖:
renderWorkbook在类中AbstractXlsView- 参数:
workbook- the POI Workbook to renderresponse- current HTTP response- 抛出:
IOException- when thrown by I/O methods that we're delegating to- 另请参阅:
-
SXSSFWorkbook.dispose()
-