Java crawling webpage - java tool class