Results 1 to 1 of 1
- 01-09-2012, 06:45 PM #1
Member
- Join Date
- Jan 2012
- Posts
- 2
- Rep Power
- 0
Track file copy progress with FileUtils
I'm using this method to download a set of files:
I found this to be much faster than then usual writing of bytes to a stream.Java Code:FileUtils.copyURLToFile(url,file);
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?
Similar Threads
-
File Downloader: getting progress out the download
By Jaeela in forum New To JavaReplies: 8Last Post: 11-19-2011, 06:45 PM -
How to set the value for Progress Bar in another Java file not in UI class?
By raja e in forum SWT / JFaceReplies: 1Last Post: 01-25-2011, 05:38 AM -
monitor the progress of sending a file to client
By adumi in forum Advanced JavaReplies: 9Last Post: 04-23-2010, 09:55 PM -
How to track Save And open a Junit test Java file?
By jaydip.biswas in forum EclipseReplies: 0Last Post: 03-15-2010, 06:44 AM -
Copy a file to a folder.
By leric in forum New To JavaReplies: 7Last Post: 07-29-2009, 05:11 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks