Flat files in Java made easy: JFileHelpers

It’s almost certain every Java programmer out there had to deal with handling of delimited or fixed length flat files at one moment of his career.

I have just created a library that makes it easier to work with that: JFileHelpers. It uses the awesomeness of Java annotations to allow you to handle flat files with minimum changed to existing code. It’s a port of the awesome FileHelpers C# library, by Marcos Meli.

We are also looking for developers who would be interested on joining the team. If you’re not available, you can also help by using the library, and giving feedback on features you’d like to see implemented.

Hope you like it, I would really like to hear your opinions on the library.

Advertisements

5 Responses to “Flat files in Java made easy: JFileHelpers”

  1. Jacob von Eyben Says:

    First of all great work on JFileHelpers!

    I know you have asked me several times if I would start committing on jfilehelpers instead of continuing the development on http://fixedformat4j.ancientprogramming.com. I understand that it would be the most reasonable to join forces, but I don’t have that much time on my hand at the moment.

    http://fixedformat4j.ancientprogramming.com focuses on reading and writing fixedformatted flatfiles and will probably not go in the direction of handling delimited files like csv format etc.
    We uses fixedformat4j on my current project to read and write rather complex and large fixedformatted files where each line doesn’t represent the same kind of data – like a customer or so.
    As I see the sourcecode of jfilehelper it is create if you need to export, say, an array of customers to text format, but doesn’t help me if each line is completely different from each other?
    This is the direction I would like to take fixedformat4j – help parsing and creating complex data like that – targeting projects that needs to integrate with legacy applications that uses EDI or some other flat file format as the protocol.

  2. Andries Inzé Says:

    How about very large filesets?
    I see you read the entire file and create the list with the results.

    Is there a way to read portions of the file, for the sake of memory consumption?

  3. Felipe Coury Says:

    As mentioned in private e-mail to Andries, our latest version (not stable yet) allows you to work with the file using an Iterator. If anyone have any questions on that, drop me a note here and I’ll elaborate. Thanks!

  4. Mahesh Dasari Says:

    Are there any updates to this library, i am very intrested into this. How to read a flat file and create a structural object for eg: customer extends Dept where customer holds 1-4 records of the input file and Dept holds 5-7 records of the input file. if you have any inputs please let me know Thanks in Advance!

  5. andrewshudson90350 Says:

    […] Tapi semua itu cuma khayalan saya saja kok. Gambar di atas dibuat dari sebuah tato generator, yang informasinya saya dapatkan dari Arif. [tautan]. Click https://zhoutest.wordpress.com/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: