Forums Register Login

Are there Record structures classes in JAVA?

+Pie Number of slices to send: Send
Hi,
I am trying to rewrite a COBOL program in JAVA. This program reads in a file (record length = 10000) and has a large number of fields. I was wondering if there are in-built JAVA classes which can do the same work as COBOL record layouts or C structs.
My idea would be to write a generic class (say RecLayout) which has a method to add fields with name, starting position and length, a method to get any predefined field etc.
Lasagna is spaghetti flvored cake. Just like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 903 times.
Similar Threads
Java Beginner's I/O Question
some questions regarding database?
XML and J2EE
Deciphering the instructions
NX: Bodgitt and Scarper: what to do with the db-2*3.db file? write a parser? and...
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:15:24.