public URI toURI() {
		final String protocol = scheme.getProtocol();
		try {
			return new URI(protocol, null, host, port, path, null, null);
		}
		catch (URISyntaxException ex) {
			throw new UrlException(protocol, host, port, path, ex);
		}
	}
public URI toURI() {
		final String protocol = scheme.getProtocol();
		try {
			return new URI(protocol, null, host, port, path, null, null);
		}
		catch (URISyntaxException ex) {
			throw new UrlException(protocol, host, port, path, ex);
		}
	}
public URI toURI ( ) { final String protocol = scheme . getProtocol ( ) ; try { return new URI ( protocol , null , host , port , path , null , null ) ; } catch ( URISyntaxException ex ) { throw new UrlException ( protocol , host , port , path , ex ) ; } }
Create new {@link URI} from URL fields.

@return URI instance.
@throws IllegalArgumentException If {@code URI} cannot be built because of {@link URISyntaxException}.
Create new { @link URI } from URL fields .