Save This Page
Home » slf4j-1.5.5 » org.apache » log4j » helpers » [javadoc | source]
org.apache.log4j.helpers
public class: Transform [javadoc | source]
java.lang.Object
   org.apache.log4j.helpers.Transform
Utility class for transforming strings.
Method from org.apache.log4j.helpers.Transform Summary:
appendEscapingCDATA,   escapeTags
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.helpers.Transform Detail:
 public static  void appendEscapingCDATA(StringBuffer buf,
    String str) 
    Ensures that embeded CDEnd strings (]]>) are handled properly within message, NDC and throwable tag text.
 public static String escapeTags(String input) 
    This method takes a string which may contain HTML tags (ie, <b>, <table>, etc) and replaces any '<', '>' , '&' or '"' characters with respective predefined entity references.