Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

reg. Exception Handling

Thread view: 
calmsqurill@gmail.com - 04 Oct 2006 03:26 GMT
hi,

Im very new to Java.
Basically
1. I need to read set of files
2. do some Validation while reading the files.
3. Catch the Exceptions(if any), and save the exceptions into database.
4. passing the validations, update the database.

anyone can help me........

thks
Manish Pandit - 04 Oct 2006 05:06 GMT
Hi,

1. You use java.io.File API to read the files
2. Do your validation upon reading the files - based on the size of the
files, you can read them line by line and do your validations.
3. Use try catch blocks for exceptions (It' be IOException mostly)
4. Declare your own exceptions if you want the caller to be known of
validation errors
5. Use JDBC API to talk to the database.

-cheers,
Manish


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.