@JavaDispatcher.Proxied(value="java.net.URL") protected static interface ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction.Dispatcher
URL.| Modifier and Type | Method and Description |
|---|---|
URL |
make(String protocol,
String host,
int port,
String file,
URLStreamHandler handler)
Creates a
URL. |
URL |
of(URI uri,
URLStreamHandler handler)
Resolves a URL from an URI, if possible.
|
@JavaDispatcher.IsConstructor URL make(String protocol, String host, int port, String file, URLStreamHandler handler) throws MalformedURLException
URL.protocol - The URL's protocol.host - The host on the URL.port - The port on the URL or a negative value if no port is defined.file - The file on the URL.handler - The stream handler to use.MalformedURLException - If the supplied URL is malformed.@MaybeNull @JavaDispatcher.IsStatic @JavaDispatcher.Defaults URL of(URI uri, URLStreamHandler handler) throws MalformedURLException
uri - The URI to represent.handler - The stream handler to attach to that URL.MalformedURLException - If the supplied URL is malformed.Copyright © 2014–2023. All rights reserved.