Class SimpleExporter

java.lang.Object
org.jxls.template.SimpleExporter

public class SimpleExporter extends Object
Helper class for grid export
  • Field Details

  • Constructor Details

    • SimpleExporter

      public SimpleExporter()
  • Method Details

    • registerGridTemplate

      public void registerGridTemplate(InputStream inputStream) throws IOException
      Throws:
      IOException
    • gridExport

      public void gridExport(Iterable<?> headers, Iterable<?> dataObjects, String objectProps, OutputStream outputStream)
      This is the main method of the SimpleExporter.
      Parameters:
      headers - a collection of headers
      dataObjects - a collection of data objects
      objectProps - a comma-separated list of object property names
      outputStream - an OutputStream to write the final Excel file
    • gridExport

      public void gridExport(Map<String,Object> data, String objectProps, OutputStream outputStream)
      #315
      Parameters:
      data - a data map that should contain a collection of headers named "headers" and a collection of data objects called "data"
      objectProps - a comma-separated list of object property names
      outputStream - an OutputStream to write the final Excel file
    • getBuilder

      protected JxlsPoiTemplateFillerBuilder getBuilder(String objectProps)