Code example for URI

Methods: toURL

0
	public void setUrl(File file)
	{ 
		try 
		{ 
			URI fileUri = file.toURI();
			URL fileUrl = fileUri.toURL();
			setUrl(fileUrl);
		} 
		catch(MalformedURLException e)
		{ 
			throw new BadThingsHappenedRuntimeException("Failed to convert file to URL.", e);
		} 
	} 
	  
 
	public URL getUrl()
	{ 
		return url;
	} 
	public void setUrl(URL url)
	{