public class

Handler

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

Class Overview

open an nntp input stream given a URL

Summary

Public Constructors
Handler()
Public Methods
synchronized URLConnection openConnection(URL u)
Opens a connection to the object referenced by the URL argument.
void parseURL(URL u, String spec, int start, int limit)
This method is called to parse the string spec into URL u for a mailto protocol.
[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.

public void parseURL (URL u, String spec, int start, int limit)

This method is called to parse the string spec into URL u for a mailto protocol.

Parameters
u the URL to receive the result of parsing the spec
spec the URL string to parse
start the character position to start parsing at. This is just past the ':'.
limit the character position to stop parsing at.