net.sourceforge.pmd.util

Class StringUtil

public class StringUtil extends Object

BSD-style license; for more info see http://pmd.sourceforge.net/license.html
Method Summary
static voidappendXmlEscaped(StringBuffer buf, String src)
Appends to a StringBuffer the String src where non-ASCII and XML special chars are escaped.
static StringreplaceString(String d, char oldChar, String newString)
static StringreplaceString(String inputString, String oldString, String newString)

Method Detail

appendXmlEscaped

public static void appendXmlEscaped(StringBuffer buf, String src)
Appends to a StringBuffer the String src where non-ASCII and XML special chars are escaped.

Parameters: buf The destination XML stream src The String to append to the stream

replaceString

public static String replaceString(String d, char oldChar, String newString)

replaceString

public static String replaceString(String inputString, String oldString, String newString)