src/org/kocakosm/pitaya/net/URN.java
public static URN create(String urn)
	{
		try {
			return new URN(urn);
		} catch (URNSyntaxException ex) {
			throw new IllegalArgumentException(ex);
		}
	}
public static URN create(String urn)
	{
		try {
			return new URN(urn);
		} catch (URNSyntaxException ex) {
			throw new IllegalArgumentException(ex);
		}
	}
public static URN create ( String urn ) { try { return new URN ( urn ) ; } catch ( URNSyntaxException ex ) { throw new IllegalArgumentException ( ex ) ; } }
Creates a new {@code URN} by parsing the given {@code String}. This
function invokes the {@link URN#URN(java.lang.String)} constructor;
any {@code URNSyntaxException} 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 URN}.

@param urn the {@code String} to be parsed into a {@code URN}.

@return the created {@code URN}.

@throws NullPointerException if {@code urn} is {@code null}.
@throws IllegalArgumentException if {@code urn} violates RFC 2141.
Creates a new { @code URN } by parsing the given { @code String } . This function invokes the { @link URN#URN ( java . lang . String ) } constructor ; any { @code URNSyntaxException } 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 URN } .