public URI(String scheme,String schemeSpecificPart,String fragment) throws URISyntaxException {
  StringBuilder uri=new StringBuilder();
  if (scheme != null) {
    uri.append(scheme);
    uri.append(':');
  }
  if (schemeSpecificPart != null) {
    ALL_LEGAL_ENCODER.appendEncoded(uri,schemeSpecificPart);
  }
  if (fragment != null) {
    uri.append('#');
    ALL_LEGAL_ENCODER.appendEncoded(uri,fragment);
  }
  parseURI(uri.toString(),false);
}

public URI ( String scheme , String schemeSpecificPart , String fragment ) throws URISyntaxException { StringBuilder uri = new StringBuilder ( ) ; if ( scheme != null ) { uri . append ( scheme ) ; uri . append ( ':' ) ; } if ( schemeSpecificPart != null ) { ALL_LEGAL_ENCODER . appendEncoded ( uri , schemeSpecificPart ) ; } if ( fragment != null ) { uri . append ( '#' ) ; ALL_LEGAL_ENCODER . appendEncoded ( uri , fragment ) ; } parseURI ( uri . toString ( ) , false ) ; }
creates a new uri instance of the given unencoded component parts .
