public class ExcelExport extends Object
WebContext
Modifier and Type | Class and Description |
---|---|
static class |
ExcelExport.ImageCell
Represents a cell containing an image which should be inserted.
|
Constructor and Description |
---|
ExcelExport()
Generates a new Export
|
Modifier and Type | Method and Description |
---|---|
ExcelExport |
addRow(Object... row)
Adds the given array of objects as a row.
|
ExcelExport |
addRowAsList(Collection<?> row)
Adds the given collection of objects as a row.
|
void |
writeResponseTo(String name,
WebContext ctx)
Writes the generated Excel file to the given web context.
|
void |
writeToStream(OutputStream stream)
Writes the generated excel file to the given stream.
|
public ExcelExport addRow(Object... row)
row
- the objects to add to the tablepublic ExcelExport addRowAsList(Collection<?> row)
row
- the objects to add to the tablepublic void writeResponseTo(String name, WebContext ctx)
name
- the filename to usectx
- the target context to create a response forpublic void writeToStream(OutputStream stream)
stream
- the target stream to write the excel workbook toCopyright © 2018. All rights reserved.