コード例 #1
0
 /**
  * Formats a message String into a String for html presentation. Escapes the &, <, >, " and ®, and
  * replace the \n by <br>
  * and \r for space.
  *
  * <p>IMPORTANT! : this method is designed to transform the output of Utility.messageBD method,
  * and this method replaces \n by \\n and \" by &quote. Because of that, the first replacements
  * revert this previous replacements.
  *
  * @param message message with java formating
  * @return html format message
  */
 public static String formatMessageBDToHtml(String message) {
   return BasicUtility.formatMessageBDToHtml(message);
 }
コード例 #2
0
 /**
  * Translate the given code into some message from the application dictionary.
  *
  * @param conn Handler for the database connection.
  * @param strCode String with the code to search.
  * @param strLanguage String with the translation language.
  * @param escape Escape \n and " characters
  * @return String with the translated message.
  */
 public static String messageBD(
     ConnectionProvider conn, String strCode, String strLanguage, boolean escape) {
   return BasicUtility.messageBD(conn, strCode, strLanguage, escape);
 }