I'm using this method to download a set of files:
FileUtils.copyURLToFile(url,file);

I found this to be much faster than the usual writing of bytes to a stream.

However, I ran into a problem. By using this method, I lost the ability to
track the progress and give feedback to the user.

If I'm downloading a large file, there's no way of knowing if it's close to
finishing or even if it's downloading at all.

Is there any way to get this information to update a JProgressBar? 

--
View this message in context: 
http://apache-commons.680414.n4.nabble.com/Track-progress-of-a-file-copy-tp4279297p4279297.html
Sent from the Commons - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org

Reply via email to