Package org.jxls.template
Class SimpleExporter
java.lang.Object
org.jxls.template.SimpleExporter
Helper class for grid export
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JxlsPoiTemplateFillerBuildergetBuilder(String objectProps) voidgridExport(Iterable<?> headers, Iterable<?> dataObjects, String objectProps, OutputStream outputStream) This is the main method of the SimpleExporter.voidgridExport(Map<String, Object> data, String objectProps, OutputStream outputStream) #315voidregisterGridTemplate(InputStream inputStream)
-
Field Details
-
GRID_TEMPLATE_XLS
- See Also:
-
-
Constructor Details
-
SimpleExporter
public SimpleExporter()
-
-
Method Details
-
registerGridTemplate
- 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 headersdataObjects- a collection of data objectsobjectProps- a comma-separated list of object property namesoutputStream- an OutputStream to write the final Excel file
-
gridExport
#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 namesoutputStream- an OutputStream to write the final Excel file
-
getBuilder
-