• Post Reply Bookmark Topic Watch Topic
  • New Topic

Are there Record structures classes in JAVA?

 
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!