Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 556 Bytes

readme.adoc

File metadata and controls

33 lines (25 loc) · 556 Bytes

Kalo

Annotations for converting POJOs to Workbooks through Apache Poi.

Foo.java
class Foo {
  @Poi(header="Bar")
  String barVal;

  Foo(String bv) {...}

  @Poi
  int getFizz() {...}

  @Poi(index=1)
  int getId() {...}
}
main method
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);