View on GitHub

jsapar

JSaPar is a Java library providing a schema based parser and composer of almost all sorts of delimited (CSV) and fixed width files.

Release notes

2.3

2.3.5

2.3.4

2.3.3

2.3.2

2.3.1

2.3.0

  1. Built with and for Java 11. Support for Java 8 and below is dropped.
  2. Added methods to TextParser to get stream of lines while parsing. This makes parsing lazy, i.e. lines are pulled from the source Reader upon requested.
  3. Added methods to Text2BeanConverter to get stream of beans while parsing. This makes parsing lazy, i.e. lines are pulled from the source Reader upon requested.
  4. The return value of method Cell.getValue() is now undefined if the cell is empty and may return null.
  5. When header line is used as schema, the cell names in that header line are now trimmed from leading and trailing whitespaces. This eliminates the hard detected error of having trailing white space characters on the first line.
  6. Made it possible to specify a level label in the @JSaParContainsCells annotation.

2.2

2.2.0

There are two main focus areas of this release:

  1. Improve composing performance, both for delimited and fixed width target. Also parsing performance benefits from some of these changes.
  2. Make it easier to create Schema and BeanMap objects in Java code.

These are the specific changes:

2.1

2.1.1

2.1.0

2.0

2.0.1

  1. Performance improvements while parsing delimited (CSV) sources and fixed width sources where lines are separated. Performance of the parsing part should be improved by at least 50% in a normal scenario. Both CPU and memory impact has been significantly improved.
  2. Default cell cache size while parsing is now 1 (instead of 10) since this has the best characteristics in a normal scenario. A single item sized cache could be implemented in a lot easier way leading to better performance.
  3. Changed behaviour when parsing quoted delimited sources. When a start quote is found but no end quote within 8kB of data, the parser now tries again to parse the source but considers that particular cell as not being quoted.
  4. It is now possible to configure maximum line length while parsing. Default is 8kB.
  5. When using first line as schema while parsing CSV and the header line contains an empty cell, the cells of the body at that position will now be ignored while reading. Previously this generated an exception and parsing was aborted.
Back to Top