类 AbstractXlsxStreamingView

java.lang.Object
cn.taketoday.context.support.ApplicationObjectSupport
所有已实现的接口:
cn.taketoday.beans.factory.Aware, cn.taketoday.beans.factory.BeanNameAware, cn.taketoday.context.ApplicationContextAware, View

public abstract class AbstractXlsxStreamingView extends AbstractXlsxView
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
  • 构造器详细资料

    • AbstractXlsxStreamingView

      public AbstractXlsxStreamingView()
  • 方法详细资料

    • createWorkbook

      protected org.apache.poi.xssf.streaming.SXSSFWorkbook createWorkbook(Map<String,Object> model, RequestContext request)
      This implementation creates a SXSSFWorkbook for streaming the XLSX format.
      覆盖:
      createWorkbook 在类中 AbstractXlsxView
      参数:
      model - the model Map
      request - current HTTP request (for taking the URL or headers into account)
      返回:
      the new Workbook instance
    • renderWorkbook

      protected void renderWorkbook(org.apache.poi.ss.usermodel.Workbook workbook, RequestContext response) throws IOException
      This implementation disposes of the SXSSFWorkbook when done with rendering.
      覆盖:
      renderWorkbook 在类中 AbstractXlsView
      参数:
      workbook - the POI Workbook to render
      response - current HTTP response
      抛出:
      IOException - when thrown by I/O methods that we're delegating to
      另请参阅:
      • SXSSFWorkbook.dispose()