src/main/java/org/wymiwyg/commons/util/URI.java
private void initializeScheme(String p_uriSpec)
		throws MalformedURIException {
		int uriSpecLen = p_uriSpec.length();
		int index = p_uriSpec.indexOf(':');

		if (index < 1)
			throw new MalformedURIException("No scheme found in URI.");

		if (index == uriSpecLen - 1)
			throw new MalformedURIException("A bare scheme name is not a URI.");

		setScheme(p_uriSpec.substring(0, index));
	}
private void initializeScheme(String p_uriSpec)
		throws MalformedURIException {
		int uriSpecLen = p_uriSpec.length();
		int index = p_uriSpec.indexOf(':');

		if (index < 1)
			throw new MalformedURIException("No scheme found in URI.");

		if (index == uriSpecLen - 1)
			throw new MalformedURIException("A bare scheme name is not a URI.");

		setScheme(p_uriSpec.substring(0, index));
	}
Initialize the scheme for this URI from a URI string spec.

@param p_uriSpec the URI specification (cannot be null)

@exception MalformedURIException if URI does not have a conformant
scheme