Skip to content

Sbet features & limitations

etiennec edited this page Sep 24, 2016 · 1 revision

Features:

  • Bidirectional: Pretty much the only reason why Sbet was created :) You can generate a document from a template and some data, and you can retrieve some data if you have a document and a template.
  • Secure: Sbet uses Apache Commons BeanUtils to evaluate dynamic contents of templates, so it's not possible to invoke arbitrary code in the template (or is it?)
  • Fast & Memory efficient: Sbet uses streaming read & write whenever possible.
  • Simple to learn.

Limitations:

  • Syntax is Simplistic, so you cannot add fancy logic in your templates. You can get bean properties & loop over Collections, and that's it.
  • Sbet read & write is forward-only, with no access to the parts of the document that have been already generated.
  • Sbet currently only supports XLSX and TXT format. However, adding support for other formats (DOCX, PDF, etc.) shouldn't be too hard.
Clone this wiki locally