String encodedUsername(){
  if (username.isEmpty())   return "";
  int usernameStart=scheme.length() + 3;
  int usernameEnd=delimiterOffset(url,usernameStart,url.length(),":@");
  return url.substring(usernameStart,usernameEnd);
}

String encodedUsername ( ) { if ( username . isEmpty ( ) ) return "" ; int usernameStart = scheme . length ( ) + 3 ; int usernameEnd = delimiterOffset ( url , usernameStart , url . length ( ) , ":@" ) ; return url . substring ( usernameStart , usernameEnd ) ; }
returns the username , or an empty string if none is set .
