src/org/kocakosm/pitaya/net/URLs.java
public static URL create(String url)
	{
		Parameters.checkNotNull(url);
		try {
			return new URL(url);
		} catch (MalformedURLException ex) {
			throw new IllegalArgumentException(ex);
		}
	}
public static URL create(String url)
	{
		Parameters.checkNotNull(url);
		try {
			return new URL(url);
		} catch (MalformedURLException ex) {
			throw new IllegalArgumentException(ex);
		}
	}
Creates a new {@code URL} by parsing the given {@code String}. This
function invokes the {@link URL#URL(java.lang.String)} constructor;
any {@code MalformedURLException} thrown by the constructor is caught
and wrapped in a new {@code IllegalArgumentException}, which is then
thrown. This method is provided for use in situations where it is
known that the given {@code String} is a legal {@code URL}.

@param url the {@code String} to be parsed into a {@code URL}.

@return the created {@code URL}.

@throws NullPointerException if {@code url} is {@code null}.
@throws IllegalArgumentException if {@code url} is not a valid URL.