public void download(String url, String destination) { BufferedOutputStream localBufferedOutputStream = null; URLConnection localURLConnection = null
As an alternative and just for reference, you can investigate HTMLUnit. This framework will allow you to download files even on sites where there are browser redirects.
http://htmlunit.sourceforge.net/