static String parseAuthority(String uriString,int ssi){
  int length=uriString.length();
  if (length > ssi + 2 && uriString.charAt(ssi + 1) == '/' && uriString.charAt(ssi + 2) == '/') {
    int end=ssi + 3;
    LOOP:     while (end < length) {
switch (uriString.charAt(end)) {
case '/':
case '?':
case '#':
        break LOOP;
    }
    end++;
  }
  return uriString.substring(ssi + 3,end);
}
 else {
  return null;
}
}

static String parseAuthority ( String uriString , int ssi ) { int length = uriString . length ( ) ; if ( length > ssi + 2 && uriString . charAt ( ssi + 1 ) == '/' && uriString . charAt ( ssi + 2 ) == '/' ) { int end = ssi + 3 ; LOOP : while ( end < length ) { switch ( uriString . charAt ( end ) ) { case '/' : case '?' : case '#' : break LOOP ; } end ++ ; } return uriString . substring ( ssi + 3 , end ) ; } else { return null ; } }
parses an authority out of the given uri string .
