- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 52 of file ExpensesBook.java.
◆ download()
void org.turro.financials.book.ExpensesBook.download |
( |
| ) |
|
Definition at line 54 of file ExpensesBook.java.
55 String name = ElephantContext.getSiteName() +
"_ExpensesBook.xls";
56 Filedownload.save(
getExcel(name),
new MimetypesFileTypeMap().getContentType(name), name);
InputStream getExcel(String sheetName)
◆ from()
static ExpensesBook org.turro.financials.book.ExpensesBook.from |
( |
int |
year | ) |
|
|
static |
◆ getExcel()
InputStream org.turro.financials.book.ExpensesBook.getExcel |
( |
String |
sheetName | ) |
|
Definition at line 59 of file ExpensesBook.java.
61 ByteArrayOutputStream baos =
new ByteArrayOutputStream();
62 WritableWorkbook ww = Workbook.createWorkbook(baos);
63 WritableSheet ws = ww.createSheet(sheetName, 0);
68 return new ByteArrayInputStream(baos.toByteArray());
69 }
catch (WriteException | IOException ex) {
70 WebLoggers.severe(
this).exception(ex).log();
The documentation for this class was generated from the following file: