| java.lang.Object org.apache.mina.util.Transform
Transform | public class Transform (Code) | | Utility class for working with xml data
Implementation is heavily based on org.apache.log4j.helpers.Transform
|
Method Summary | |
public static void | appendEscapingCDATA(StringBuffer buf, String str) Ensures that embeded CDEnd strings (]]>) are handled properly
within message, NDC and throwable tag text.
Parameters: buf - StringBuffer holding the XML data to this point. | 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.
Parameters: input - The text to be converted. | public static String[] | getThrowableStrRep(Throwable throwable) |
appendEscapingCDATA | public static void appendEscapingCDATA(StringBuffer buf, String str)(Code) | | Ensures that embeded CDEnd strings (]]>) are handled properly
within message, NDC and throwable tag text.
Parameters: buf - StringBuffer holding the XML data to this point. Theinitial CDStart () of the CDATAsection are the responsibility of the calling method. Parameters: str - The String that is inserted into an existing CDATA Section within buf. |
escapeTags | public static String escapeTags(String input)(Code) | | This method takes a string which may contain HTML tags (ie,
<b>, <table>, etc) and replaces any
'<', '>' , '&' or '"'
characters with respective predefined entity references.
Parameters: input - The text to be converted. The input string with the special characters replaced. |
getThrowableStrRep | public static String[] getThrowableStrRep(Throwable throwable)(Code) | | convert a Throwable into an array of Strings
Parameters: throwable - string representation of the throwable |
|
|