private static String buildJavaSourceHyperlink(String javaSourceAddress,String text){
  if (javaSourceAddress == null) {
    return convertToHtmlContent(text);
  }
  StringBuffer buf=new StringBuffer();
  buf.append("<a href=\"");
  buf.append(JAVA_SOURCE_URL_PREFIX);
  try {
    buf.append(URLEncoder.encode(javaSourceAddress,"UTF-8"));
  }
 catch (  UnsupportedEncodingException e) {
    buf.append(javaSourceAddress);
  }
  buf.append("\">");
  buf.append(convertToHtmlContent(text));
  buf.append("</a>");
  return buf.toString();
}

private static String buildJavaSourceHyperlink ( String javaSourceAddress , String text ) { if ( javaSourceAddress == null ) { return convertToHtmlContent ( text ) ; } StringBuffer buf = new StringBuffer ( ) ; buf . append ( "<a href=\"" ) ; buf . append ( JAVA_SOURCE_URL_PREFIX ) ; try { buf . append ( URLEncoder . encode ( javaSourceAddress , "UTF-8" ) ) ; } catch ( UnsupportedEncodingException e ) { buf . append ( javaSourceAddress ) ; } buf . append ( "\">" ) ; buf . append ( convertToHtmlContent ( text ) ) ; buf . append ( "</a>" ) ; return buf . toString ( ) ; }
returns the html markup for a hyperlink to a line in a java source file .
