public static URI urlToURI ( URL url ) { try { return url . toURI ( ) ; } catch ( URISyntaxException e ) { throw LOG . cannotConvertUrlToUri ( url , e ) ; } }
Converts an url to an uri . Escapes whitespaces if needed .