public static String parseRtfFile(String fileName, Object data)
  {
    try
    {
      String text = FileUtils.readFromClassPath(data.getClass(), fileName);
      return parse(text, "\\{", "\\}", data);
    }
    catch (Exception e)
    {
      throw ObjectUtils.throwAsError(e);
    }
  }
public static String parseRtfFile ( String fileName , Object data ) { try { String text = FileUtils . readFromClassPath ( data . getClass ( ) , fileName ) ; return parse ( text , "\\{" , "\\}" , data ) ; } catch ( Exception e ) { throw ObjectUtils . throwAsError ( e ) ; } }
Parses a file
<div><b>Example:</b> {@code parser.parseRtfFile(filename,data)} </div>

@param fileName A filename for the new file, built from the template view.rtf
@param data A data object to put into the template fields.
@return the completed template