protected String urlString() throws ParseException {
  StringBuilder retval=new StringBuilder();
  lexer.selectLexer("charLexer");
  while (lexer.hasMoreChars()) {
    char la=lexer.lookAhead(0);
    if (la == ' ' || la == '\t' || la == '\n' || la == '>' || la == '<')     break;
    lexer.consume(0);
    retval.append(la);
  }
  return retval.toString();
}

protected String urlString ( ) throws ParseException { StringBuilder retval = new StringBuilder ( ) ; lexer . selectLexer ( "charLexer" ) ; while ( lexer . hasMoreChars ( ) ) { char la = lexer . lookAhead ( 0 ) ; if ( la == ' ' || la == '\t' || la == '\n' || la == '>' || la == '<' ) break ; lexer . consume ( 0 ) ; retval . append ( la ) ; } return retval . toString ( ) ; }
scan forward until you hit a terminating character for a url . we do not handle non sip urls in this implementation .
