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