Wget implemented in Java