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
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.
Gary
On Mon, Jan 9, 2012 at 12:47 PM, Smig smi...@gmail.com wrote:
I'm using this method to download a set of files:
FileUtils.copyURLToFile(url,file);
I found this to be
On 9 January 2012 18:27, Gary Gregory garydgreg...@gmail.com wrote:
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.
FileUtils.copyURLToFile uses IOUtils.copy(InputStream input,
OutputStream output) to do the actual copy, so