Full Link Extraction using java
<p>Hey
My goal is to always get the same string (which is the URI in my case) while reading the href property from a link. Example:
Suppose think that a html file it have somany links like<br>
<code>a href="index.html"></code> but base domain is <a href="http://www.domainname.com/index.html" rel="nofollow">http://www.domainname.com/index.html</a><bR>
<code>a href="../index.html"></code> but base domain is <a href="http://www.domainname.com/dit/index.html" rel="nofollow">http://www.domainname.com/dit/index.html</a><br>
how can i get all the link correctly means the full link including domain name? 
<br>how can i do that in java?
<br>
 the input is HTML,that is,from a bunch of HTML code it need to extract correct link</p>
