- u
- the URL to the resource where a connection has to be opened.
- proxy
- the proxy that is used to make the connection.
Documentation for this section has not yet been entered.
Type Reason Java.IO.IOException if an I/O error occurs during opening the connection. Java.Lang.IllegalArgumentException if any argument is null or the type of proxy is wrong. Java.Lang.UnsupportedOperationException if the protocol handler doesn't support this method.
Establishes a new connection to the resource specified by the URL u using the given proxy. Since different protocols also have unique ways of connecting, it must be overwritten by the subclass.