Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

data conversion tool implementation

 
Sridhar Garimella
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,
This way i did my data conversion tool functionality. I implemented this as a stand alone and GUI based application which took 4 command line args input file(ascill text), output file(binary file), delimiter and no of columns. Based on the no of columns i created text fields for both field names and sizes. I did small validations also here. Based on the output file and delimiter i created a binary file and read the info from input ascii text file and wrote in the binary file using Data class constructor and Add method(already provided by sun). I was able to populate the data in JTable and did add new record,delete and modify existing records functionalities successfully. It hardly took 4 hours inorder to do this.
So, friends if any thing wrong in my functionality please correct me. I am looking forward to hear your comments and opinions.
Thanks in advance,
Sreedhar Garimella.


 
Adrian Yan
Ranch Hand
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Based on my exam instruction, I don't even have to write a DCT, make sure yours require your to write a DCT.
As far as the functionalities, it seems that you are on the right track.
 
Rajesh Chandrasekaran
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sridhar,
From your post I don't see from how you get the field names and their sizes..
In my DCT I use a properties file with field names and
their sizes.
I pass this property file, input ASCII file and the output
binary file name as arguments to DCT.
-Rajesh.
 
Shankar S
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I downloaded my assignment today and i didn't see anywhere saying that we have to provide/create data conversion tool. Also
the instruction clearly says that the data file is binary file.
i am confused!!!???!!!
 
Rajesh Chandrasekaran
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shankar,
I downloaded my assignment in Dec.
I believe the new version (from Jan'2001)doesn't have a
requirement to write a DCT.
Check this post: http://www.javaranch.com/ubb/Forum25/HTML/000236.html
 
Sridhar Garimella
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rajesh,
I am displaying the text fields based on the cmd argument of column count. For example if it is 9 then 9 text fields for field names and 9 for field sizes respectively. Then the user enter each field name and its size in those text fields. After that i am passing these values along with the ascii text file.
If any thing wrong please clarify.
Thanks in advance,
sreedhar garimella.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic