Descripción
Sintaxis
public URL(String spec) throws MalformedURLException
public URL(String protocol, String host, int port, String file) throws MalformedURLException
public URL(String protocol, String host, int port, String file, URLStreamHandler handler) throws MalformedURLException
public URL(String protocol, String host, String file) throws MalformedURLException
public URL(URL context, String spec) throws MalformedURLException
public URL(URL context, String spec, URLStreamHandler handler) throws MalformedURLException
Parámetros
- String file,
- String spec,
- String host,
- URL context,
- URLStreamHandler handler,
- int port,
- String protocol,
Excepciones
SecurityException, MalformedURLException
Clase Padre
Ejemplo
Líneas de Código
Vídeos Java
Disfruta también de nuestros artículos sobre Java en formato vídeo. Aprovecha y suscribete a nuestro canal.