commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <>
Subject Re: Track progress of a file copy?
Date Mon, 09 Jan 2012 18:27:08 GMT
I've wanted to do this in the past as well, but I do not see how to do
it without a new API that takes in a listener.


On Mon, Jan 9, 2012 at 12:47 PM, Smig <> wrote:
> 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:
> Sent from the Commons - User mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

E-Mail: |
JUnit in Action, 2nd Ed:
Spring Batch in Action:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message