posted 17 years ago
I think hardcoding is acceptable and is a good solution, because the file are not going to change.
But, I am reading the schema and storing it in a array list, because it is easier to implement, and it demands less code. for example, to write all fields of a record to the file I just need the folowing code:
See, with just a few lines all the fields are saved. Using constants, you need to use each one of them, and the code will have more lines.
Marcelo.
SCJP5(93%), SCJD(in progress...), SCEA(not started yet...)