@Override public void execute() throws IOException { BufferedInputStream urlIn = new BufferedInputStream(new URL(url).openStream()); File file = new File(filename); if ("".equals(aesKeyBase64)) { crypto.copyToFileClosing(urlIn, file); } else { crypto.decodeToFileClosing(aesKeyBase64, urlIn, file); } syserr("downloaded " + url + " to " + file); }