This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Are there Record structures classes in JAVA?  RSS feed

 
Manishkumar Haria
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!