public URI(String nuri) throws MalformedURIException {
  uri=nuri;
  colonLocation=nuri.indexOf(':');
  fragmentLocation=URIClassifier.getFragmentLocation(nuri);
  if (colonLocation == -1 || colonLocation > fragmentLocation || colonLocation == 0)   throw new MalformedURIException("No scheme in URI \"" + uri + "\"",uri);
}

public URI ( String nuri ) throws MalformedURIException { uri = nuri ; colonLocation = nuri . indexOf ( ':' ) ; fragmentLocation = URIClassifier . getFragmentLocation ( nuri ) ; if ( colonLocation == - 1 || colonLocation > fragmentLocation || colonLocation == 0 ) throw new MalformedURIException ( "No scheme in URI \"" + uri + "\"" , uri ) ; }
creates a generic uri from the given string .
