Reads a url for links in Java