GNU wget clone written in JAVA