Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/foxcapades/kalo
Annotations for POJO to Poi Workbook serialization.
https://github.com/foxcapades/kalo
annotations java poi spreadsheet
Last synced: 22 days ago
JSON representation
Annotations for POJO to Poi Workbook serialization.
- Host: GitHub
- URL: https://github.com/foxcapades/kalo
- Owner: Foxcapades
- License: apache-2.0
- Created: 2017-04-06T20:07:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-23T15:17:43.000Z (over 5 years ago)
- Last Synced: 2024-11-01T05:27:43.216Z (2 months ago)
- Topics: annotations, java, poi, spreadsheet
- Language: Java
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.adoc
- License: LICENSE.txt
Awesome Lists containing this project
README
= Kalo
Annotations for converting POJOs to Workbooks through Apache Poi.
.Foo.java
[source, java]
----
class Foo {
@Poi(header="Bar")
String barVal;
Foo(String bv) {...}
@Poi
int getFizz() {...}
@Poi(index=1)
int getId() {...}
}
----.main method
[source, java]
----
final var kalo = new Kalo();
final var items = Arrays.asList(new Foo[]{new Foo("A"), new Foo("B")});// Create workbook:
final var workbook = kalo.xssf(items, Foo.class);// Write out to file:
kalo.writeXssf(new File("MyWorkbook.xlsx"), items, Foo.class);
----