public class

Handler

extends URLStreamHandler
java.lang.Object
   ↳ java.net.URLStreamHandler
     ↳ sun.net.www.protocol.netdoc.Handler

Summary

Public Constructors
Handler()
Public Methods
synchronized URLConnection openConnection(URL u)
Opens a connection to the object referenced by the URL argument.
[Expand]
Inherited Methods
From class java.net.URLStreamHandler
From class java.lang.Object

Public Constructors

public Handler ()

Public Methods

public synchronized URLConnection openConnection (URL u)

Opens a connection to the object referenced by the URL argument. This method should be overridden by a subclass.

If for the handler's protocol (such as HTTP or JAR), there exists a public, specialized URLConnection subclass belonging to one of the following packages or one of their subpackages: java.lang, java.io, java.util, java.net, the connection returned will be of that subclass. For example, for HTTP an HttpURLConnection will be returned, and for JAR a JarURLConnection will be returned.

Parameters
u the URL that this connects to.
Returns
  • a URLConnection object for the URL.
Throws
IOException