-
-
Constructors in java.net that throw MalformedURLException
| Constructor |
Description |
JarURLConnection(URL url) |
Constructs an instance of JarURLConnection that refers to the
specified URL.
|
URL(String spec) |
Creates a new URL instance by parsing spec.
|
URL(String protocol,
String host,
int port,
String file) |
Creates a new URL of the given component parts.
|
URL(String protocol,
String host,
int port,
String file,
URLStreamHandler handler) |
Creates a new URL of the given component parts.
|
URL(String protocol,
String host,
String file) |
Creates a new URL of the given component parts.
|
URL(URL context,
String spec) |
Creates a new URL by resolving spec relative to context.
|
URL(URL context,
String spec,
URLStreamHandler handler) |
Creates a new URL by resolving spec relative to context.
|
-
File.toURI()andURI.toURL()to correctly escape illegal characters.