Results 1 to 8 of 8
Thread: Delimited file processing
- 06-17-2010, 04:38 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 7
- Rep Power
- 0
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
- 06-17-2010, 05:39 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,401
- Blog Entries
- 7
- Rep Power
- 17
- 06-17-2010, 08:43 PM #3
Member
- Join Date
- Oct 2009
- Posts
- 7
- Rep Power
- 0
Its just a flat file delimited by field length.
- 06-17-2010, 09:05 PM #4
Most programmers think of delimiters as special characters used to separate fields/records. Record layouts with fixed sized fields are another thing.
- 06-17-2010, 09:41 PM #5
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
Then use multiple String.substring(...) methods to get each field.Its just a flat file delimited by field length.
- 06-17-2010, 10:51 PM #6
Member
- Join Date
- Oct 2009
- Posts
- 7
- Rep Power
- 0
My idea is to use a kind of library or framework to process my POJOs and write then to a file, simple, just that.
- 06-17-2010, 10:55 PM #7
Is this talking about the flat file you posted?every line is a very complex object and i must serialize that object to such line and read it back.
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
- 06-17-2010, 11:19 PM #8
Member
- Join Date
- Oct 2009
- Posts
- 7
- Rep Power
- 0
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
-
image processing
By sunithamm in forum Advanced JavaReplies: 6Last Post: 12-30-2010, 11:46 AM -
Processing help
By menez in forum Java AppletsReplies: 3Last Post: 02-23-2010, 02:13 AM -
File Import/Buffer processing issues?
By javanewbee in forum New To JavaReplies: 0Last Post: 11-24-2009, 11:57 PM -
image processing
By sathish natrajan in forum Java 2DReplies: 2Last Post: 11-06-2008, 05:13 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks