flapjack
Flat file parsing and serialization library for Java.
Quick Example
This simple example shows how to parse and serialize a delimited record.
Column foo = Column.string("foo");
Column bar = Column.integer("bar");
List<Column> columns = Arrays.asList(foo, bar);
Format format = DelimitedFormat.builder()
.withId("baz")
.withDescription("Baz")
.withDelimiter(',')
.unframed()
.withColumns(columns)
.build();
Record record = format.parse("bop,1").getValue();
// => {foo=bop, bar=1}
String text = format.serialize(record).getValue();
// => "bop,1"
Resources
Build
Copyright and License
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 which can be found in the file epl-v10.html at the root of this distribution. By using this softwaer in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.