Added the Java download() method.