wget command implemented in java