Getting URL contents »



After you create a URL, you will probably want to fetch contents. The easiest way to do this is by calling the getContent method
public final Object getContent()
This first method requires that you define a content handler for the content returned by the URL
The following example dumps the content of a URL to the System.out.stream by [...]

The URL Class »



The URL class enables you to get resource from remote system. After creating a URL object you can retrieve information stored in URL in one of three ways.
Use the getCotenet() method in the URL class to fetch the URL’s content directly
Use openConnection method to get URLConnection to the URL
Use openStream() method to get an InputStream [...]