@Deprecated public class SMPUrl extends URLStreamHandler
| Constructor and Description |
|---|
SMPUrl(String u)
Deprecated.
map a url string as a normal url
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthority()
Deprecated.
Gets the authority part of this
URL. |
int |
getDefaultPort()
Deprecated.
Gets the default port number of the protocol associated
with this
URL. |
String |
getFile()
Deprecated.
Gets the file name of this
URL. |
String |
getHost()
Deprecated.
|
String |
getPath()
Deprecated.
Gets the path part of this
URL. |
int |
getPort()
Deprecated.
Gets the port number of this
URL. |
String |
getProtocol()
Deprecated.
Gets the protocol name of this
URL. |
String |
getRef()
Deprecated.
Gets the anchor (also known as the "reference") of this
URL. |
String |
getUserInfo()
Deprecated.
Gets the userInfo part of this
URL. |
URLConnection |
openConnection()
Deprecated.
|
protected URLConnection |
openConnection(URL u)
Deprecated.
|
equals, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalFormpublic SMPUrl(String u) throws MalformedURLException
u - url stringMalformedURLExceptionpublic URLConnection openConnection() throws IOException
IOExceptionprotected URLConnection openConnection(URL u) throws IOException
openConnection in class URLStreamHandlerIOExceptionpublic String getHost()
public String getPath()
URL.URL, or an
empty string if one does not existpublic String getUserInfo()
URL.URL, or
null if one does not existpublic String getAuthority()
URL.URLpublic int getPort()
URL.public int getDefaultPort()
URL. If the URL scheme or the URLStreamHandler
for the URL do not define a default port number,
then -1 is returned.getDefaultPort in class URLStreamHandlerpublic String getProtocol()
URL.URL.public String getFile()
URL.
The returned file portion will be
the same as getPath(), plus the concatenation of
the value of getQuery(), if any. If there is
no query portion, this method and getPath() will
return identical results.URL,
or an empty string if one does not existpublic String getRef()
URL.URL, or null if one does not existCopyright © 2016. All Rights Reserved.