getinline: file processing DSL (java)

Romily Cocking wrote this “getinline” DSL for file processing. Get it from sourceforge. Here’s an example of it in use:

 new Source().
 fromFile("docs/sample-data/flights3.txt").
 upToTheEnd().
 counting(allRecords).
 withoutBlankLines().
 counting(nonBlankRecords).
 allowing(Processing.rule().
  accepting(1).
  including(terminalRecordPattern).
  populatingList(
  terminals,
  terminalFactory,
  regexParser),
   Processing.rule().
  including(detailRecordPattern).
  populatingList(
   flights,
   flightFactory,
   commaDelimitedParser))
  .read();

2 Responses to “getinline: file processing DSL (java)”

  1. wow gold Says:

    Nous fournissons wow po et wow power leveling pour les années.

  2. Cheap shoes online mbt shoes sale Says:

    good job,guy,it’s kind of u share this post with us which give useful information to us.God Job!I do hope u can publish more posts later.buy the way ,if you wanna buy cheap brand shoes online,you may visit our shoes store,i am sure you will find what u like.

Leave a Reply