On 25/03/2009, at 7:23 PM, Mark Gowdy wrote:

You could investigate 'Regular Expressions'. They are very powerful.
Although you rarely hear RegEx and 'Easing the pain' in the same sentence.

Being a reformed perl programmer I am intimately familiar with regular expressions. Unfortunately for me, the difficulty lies is that the data I am working with is not a single uniform record type, but a dozen different record types that relate to each other, each with different field lengths, and each of those fields needs to be converted from a string to a date, integer, decimal, etc.

Anyway, I think I have something that will mostly do what I need using an XML data model. I am still open to suggestions though.

 Mark

Sent from my iPhone

On 25 Mar 2009, at 04:01, Q <[email protected]> wrote:

This is a bit off topic, but the Java foo is strong here so I thought it a good place to ask.

I am in the unfortunately position of having to write a parser for a flat fixed width ascii file format that uses a cobol style multi- record format where one of the leading fields defines the actual record type, which determines how you need to parse the rest of the string.

Can anyone recommend a java library to help do this sort of data processing that might ease my pain.

Thanks.

--
Seeya...Q

Quinton Dolan - [email protected]
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/gowdy%40mac.com

This email sent to [email protected]



--
Seeya...Q

Quinton Dolan - [email protected]
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to