Aditya Udas - 2007-07-31

I need to modify the links on a certain HTML Page.
For example, my links within the <a href> tag would be relative URL's, for example, /funds/abc.html
Now, I need to prepend the url of the host machine on which the page lies at run time.
for example, I want to prepend http://localhost:10038/wps/portal to the given link.

Im completely new to HTML parser, so can anyone tell me how I can go about doing this?
Also, is it possible to work on HTML which is in the form of an Input Stream?
I.E, I get the HTML page as an Input Stream using the HTTP Client.
If not, then I could also read the html from a file, but I need to modify the links at runtime!
Thanks in Advance
-Aditya