How to run a code when a download is finished
I wonder whether I can run a code in java, once a download is finished.
I will mention the purpose also -- I will have an xml downloaded to a local drive in my system. At the moment the xml download is completed, I want to run a java code. The purpose of that code will be taking the values from the xml and updating into database.
So, the only thing I would like to know is, how I will run a code at the moment I finishes a download(Please help with an example taking the case of downloading something on to the desktop or any drive and at the moment download finishes, run some sample code ).