Import text file crunching library for Java/Groovy? -


In real-life implementation of applications we face the need to import any type of (text) files Usually we will apply some (hardcoded?) Logic to validate the file (for example proper title, proper number delimiter, appropriate date / time value etc.). After all, the existence of related data is required to be examined in a table (for example, the value of field 1 in the text file should be an entry in some basic data table).

While XML fixes this (some extensions) with XSD and DTD, we dismiss it repeatedly for proprietary text file formats.

Do any libraries or framework create a template similar to the Xsd approach? This will make it more flexible to respond to file format changes or apply new formats.

Sven

The closest thing I think is that it may be in C # , So it has to be ported to Java, but it should not be a big deal.


Comments