java.net.URLStreamHandler methods.
The important differences between this interface and the
URLStreamHandler class are that the setURL method is absent
and the parseURL method takes a URLStreamHandlerSetter object
as the first argument. Classes implementing this interface must call the
setURL method on the URLStreamHandlerSetter object received
in the parseURL method instead of URLStreamHandler.setURL to
avoid a SecurityException.
AbstractURLStreamHandlerService
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public int | |
| public InetAddress | |
| public int | |
| public boolean | |
| public URLConnection | |
| public void | parseURL(URLStreamHandlerSetter
The object on which realHandler, URL u, String spec, int start, int limit)setURL must be invoked for
this URL.Parse a URL. |
| public boolean | |
| public String |
| equals | back to summary |
|---|---|
public boolean equals(URL u1, URL u2)
| |
| getDefaultPort | back to summary |
|---|---|
public int getDefaultPort()
| |
| getHostAddress | back to summary |
|---|---|
public InetAddress getHostAddress(URL u)
| |
| hashCode | back to summary |
|---|---|
public int hashCode(URL u)
| |
| hostsEqual | back to summary |
|---|---|
public boolean hostsEqual(URL u1, URL u2)
| |
| openConnection | back to summary |
|---|---|
public URLConnection openConnection(URL u) throws IOException
| |
| parseURL | back to summary |
|---|---|
| public void parseURL(URLStreamHandlerSetter realHandler, URL u, String spec, int start, int limit) Parse a URL. This method is called by the
| |
| sameFile | back to summary |
|---|---|
public boolean sameFile(URL u1, URL u2)
| |
| toExternalForm | back to summary |
|---|---|
public String toExternalForm(URL u)
| |