Code example for URI

Methods: normalizetoURL

0
			int j = baseURI.lastIndexOf('\\');
			if (j > i)
				i = j;
			try 
			{ 
			  uri = new URI(baseURI.substring(0, i + 1) + url);
			  uri = uri.normalize();
			  returnURL = uri.toURL();
			} 
			catch (Exception e)
			{ 
			  return new URL(baseURI.substring(0, i + 1) + url);
			} 
		} 
		return returnURL;
	} 
 
	/** 
	 * Create URL using base URI. 
	 *  
Connect your IDE to all the code out there  Get Codota for Java