public static URI toURI(URL url) throws UtilException {
		if (null == url) {
			return null;
		}
		try {
			return url.toURI();
		} catch (URISyntaxException e) {
			throw new UtilException(e);
		}
	}
public static URI toURI ( URL url ) throws UtilException { if ( null == url ) { return null ; } try { return url . toURI ( ) ; } catch ( URISyntaxException e ) { throw new UtilException ( e ) ; } }
转URL为URI

@param url URL
@return URI
@exception UtilException 包装URISyntaxException