Results 1 to 8 of 8
  1. #1
    lottalava is offline Member
    Join Date
    Oct 2009
    Posts
    7
    Rep Power
    0

    Default Delimited file processing

    Hello dudes, i have to read and write a big text file, column delimited, every line is a very complex object and i must serialize that object to such line and read it back.

    Does anyone here know a very good library or framework to the job?
    Here is an example how it should be:
    100050003peter norton 0004325234534543fdsfsdfsd545346645sdgfsdgsdfg
    434333453lincoln a. 45435634gsdfgsdfgdf6564576gdfgdfgdfghdfghdfhg

    Regards,
    Edson

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,019
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by lottalava View Post
    Hello dudes, i have to read and write a big text file, column delimited, every line is a very complex object and i must serialize that object to such line and read it back.

    Does anyone here know a very good library or framework to the job?
    Here is an example how it should be:
    100050003peter norton 0004325234534543fdsfsdfsd545346645sdgfsdgsdfg
    434333453lincoln a. 45435634gsdfgsdfgdf6564576gdfgdfgdfghdfghdfhg

    Regards,
    Edson
    What are those lines supposed to mean? What are the delimeters? That gibberish hardly counts as an example, especially not with any specification or definitions ...

    kind regards,

    Jos

  3. #3
    lottalava is offline Member
    Join Date
    Oct 2009
    Posts
    7
    Rep Power
    0

    Default

    Its just a flat file delimited by field length.

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,607
    Rep Power
    23

    Default

    Most programmers think of delimiters as special characters used to separate fields/records. Record layouts with fixed sized fields are another thing.

  5. #5
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,227
    Rep Power
    6

    Default

    Its just a flat file delimited by field length.
    Then use multiple String.substring(...) methods to get each field.

  6. #6
    lottalava is offline Member
    Join Date
    Oct 2009
    Posts
    7
    Rep Power
    0

    Default

    My idea is to use a kind of library or framework to process my POJOs and write then to a file, simple, just that.

  7. #7
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,607
    Rep Power
    23

    Default

    every line is a very complex object and i must serialize that object to such line and read it back.
    Is this talking about the flat file you posted?
    How much processing is done to each record?
    What is output after the processing?
    What kind of library would be of any help?
    Sounds like an old fashion data processing program:
    read a record
    process record
    write a record

  8. #8
    lottalava is offline Member
    Join Date
    Oct 2009
    Posts
    7
    Rep Power
    0

    Default

    Yes it is, i found a library which would fill my needs, you put annotations in your POJO and that library write or read a file based in what you specify, it looks pretty handy. The problem is that it isn´t maintained by one year!

    jfilehelpers

Similar Threads

  1. image processing
    By sunithamm in forum Advanced Java
    Replies: 6
    Last Post: 12-30-2010, 11:46 AM
  2. Processing help
    By menez in forum Java Applets
    Replies: 3
    Last Post: 02-23-2010, 02:13 AM
  3. File Import/Buffer processing issues?
    By javanewbee in forum New To Java
    Replies: 0
    Last Post: 11-24-2009, 11:57 PM
  4. image processing
    By sathish natrajan in forum Java 2D
    Replies: 2
    Last Post: 11-06-2008, 05:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •