getContent method of URL connection object

Hi,

I have set up a URL connection to an outside resource inside my servlet.

The URL i am trying to access is returning content of the type "text/html".

However, when i try to look at this html, the getContent() method insists on returning an Object, which cannot be typecast into a string or other object type so i can look at it. How do I access what the external URL is returning in readable html?

Thanks

[440 byte] By [joe_talletta] at [2007-11-26 21:55:20]
# 1
http://javaboutique.internet.com/tutorials/handlers/try :sun.net.www.content.text
tolmanka at 2007-7-10 3:51:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...