public class NullURLStreamHandlerService extends Object implements URLStreamHandlerService
| Constructor and Description |
|---|
NullURLStreamHandlerService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(URL url1,
URL url2) |
int |
getDefaultPort() |
InetAddress |
getHostAddress(URL url) |
int |
hashCode(URL url) |
boolean |
hostsEqual(URL url1,
URL url2) |
URLConnection |
openConnection(URL u) |
void |
parseURL(URLStreamHandlerSetter realHandler,
URL u,
String spec,
int start,
int limit)
Parse a URL.
|
boolean |
sameFile(URL url1,
URL url2) |
void |
setURL(URL u,
String protocol,
String host,
int port,
String file,
String ref) |
void |
setURL(URL u,
String protocol,
String host,
int port,
String authority,
String userInfo,
String file,
String query,
String ref) |
String |
toExternalForm(URL url) |
public URLConnection openConnection(URL u) throws IOException
openConnection in interface URLStreamHandlerServiceIOExceptionpublic boolean equals(URL url1, URL url2)
equals in interface URLStreamHandlerServicepublic int getDefaultPort()
getDefaultPort in interface URLStreamHandlerServicepublic InetAddress getHostAddress(URL url)
getHostAddress in interface URLStreamHandlerServicepublic int hashCode(URL url)
hashCode in interface URLStreamHandlerServicepublic boolean hostsEqual(URL url1, URL url2)
hostsEqual in interface URLStreamHandlerServicepublic boolean sameFile(URL url1, URL url2)
sameFile in interface URLStreamHandlerServicepublic void setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String file, String query, String ref)
public String toExternalForm(URL url)
toExternalForm in interface URLStreamHandlerServicepublic void parseURL(URLStreamHandlerSetter realHandler, URL u, String spec, int start, int limit)
URLStreamHandlerServiceURLStreamHandler proxy,
instead of java.net.URLStreamHandler.parseURL, passing a
URLStreamHandlerSetter object.parseURL in interface URLStreamHandlerServicerealHandler - The object on which setURL must be invoked for
this URL.Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.