public String convertString(String string)
    {
        if (string.indexOf("<referral") != -1)
        {
            int iStart = string.indexOf("url=\"") + 5;
            int iEnd = string.indexOf('\"', iStart);
            if ((iStart != 4) && (iEnd != -1))
            {
                String filename = string.substring(iStart, iEnd);
                if (filename.indexOf(":/") == -1)
                {
                    String stringFile = readFile(filename);
                    
                    if (stringFile != null)
                        string = "<!-- " + "Repository inlined from: " + filename  + " -->"
                            + "\n" + stringFile + "\n";
                }        
            }
        }
        return string;
    }
public String convertString ( String string ) { if ( string . indexOf ( "<referral" ) != - 1 ) { int iStart = string . indexOf ( "url=\"" ) + 5 ; int iEnd = string . indexOf ( '\"' , iStart ) ; if ( ( iStart != 4 ) && ( iEnd != - 1 ) ) { String filename = string . substring ( iStart , iEnd ) ; if ( filename . indexOf ( ":/" ) == - 1 ) { String stringFile = readFile ( filename ) ; if ( stringFile != null ) string = "<!-- " + "Repository inlined from: " + filename + " -->" + "\n" + stringFile + "\n" ; } } } return string ; }
Do any string conversion on the file text.