question: protected String urlString ( ) throws ParseException { StringBuffer retval = new StringBuffer ( ) ; 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 ( ) ; }
target:  Scan forward until you hit a terminating character for a URL. We do not handle non sip urls in this implementation.