| Package | Description |
|---|---|
| java.net |
| Constructor and Description |
|---|
URL(java.lang.String spec)
Creates a
URL object from the String representation. |
URL(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String file)
Creates a
URL object from the specified protocol, host, port number, and
file. |
URL(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String file,
URLStreamHandler handler)
Creates a
URL object from the specified protocol, host, port number, file
, and handler. |
URL(java.lang.String protocol,
java.lang.String host,
java.lang.String file)
Creates a URL from the specified
protocol name, host name, and file name. |
URL(URL context,
java.lang.String spec)
Creates a URL by parsing the given spec within a specified context.
|
URL(URL context,
java.lang.String spec,
URLStreamHandler handler)
Creates a URL by parsing the given spec with the specified handler within a specified context.
|