URL.openConnection

URL.openConnection

Class Overview | Class Members | This Package | All Packages

Syntax
public URLConnection openConnection() throws IOException
Returns
a URLConnection to the URL.
Description
Returns a URLConnection object that represents a connection to the remote object referred to by the URL.

If there is not already an open connection, the connection is opened by calling the openConnection method of the protocol handler for this URL.

Exceptions
IOException if an I/O exception occurs.
See Also
URL, URLConnection, openConnection