Ancient Programming

What I encounter in my software part of life is in danger of being commented upon here

Fixedformat4j released!

Posted by Jacob von Eyben on May 25th, 2008

At my current project we decided to use fixedformat4j.
So after all your feedback on my recent draft implementation I have been working quite hard this weekend to get fixedformat4j shined up.

The implementation looks pretty much what Niels proposed here and I implemented support for bigdecimal as Bob wished. That means that javassist is gone and fixedformat4j is now much less intrusive - you don’t have ti extend or implement anything to be able to load and export data.

You can see just how easy on the “getting started” at the frontpage of the project.

At this time of writing the api is only available through the download page, but I have send a maven upload request so soon it will be available from ibiblio.

2 Responses to “Fixedformat4j released!”

  1. Andries Inzé Says:

    Nice framework.
    I’m curious, it there any support for handling very large files? Something like an iterator so I could read one line at a time.
    It would help with boilerplate code for reading the lines (using a Scanner for instance).

  2. jeyben Says:

    @Andries Inzé

    Thanks for your feedback.

    Currently my focus has been on parsing/formatting one single line. I have not dived into a general way for reading/writing larger files.

    At the project where we use the framework we have build a, what we call RecordModel as a view on a file.

    Each line in our file is recognized by a combination of characters in the beginning of the file.
    Ex. We have a line type called A0, because it startes with an A and a zero. We have created the boilerplate code you talk about and it would be natural to have something doing the hardwork in fixedformat4j.

    I am still thinking on how I could load a complete file without being to domain specific and your suggestion could be a solution. On the otherhand I would like it to integrate with the fixedformatmanager and the Records somehow.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>