public final class StringUtils extends Object
Strings.| Modifier and Type | Method and Description |
|---|---|
static void |
appendEscaped(StringBuffer b,
String s,
char e)
Append a String to a StringBuffer, and escaping any occurances
of the char in the String.
|
static void |
appendQuoted(StringBuffer b,
String s,
char q)
Append a String to a StringBuffer, first quoting it with a quote
character and escaping any occurances of the quote char in the String.
|
static String |
capitalised(String name)
Captialise the first character of the input string.
|
static String |
quoted(String i,
char q)
Surround a string in quotes.
|
public static void appendQuoted(StringBuffer b, String s, char q)
b - the buffer to append tos - the String to appendq - the quote characterpublic static String quoted(String i, char q)
i - the string to quoteq - The quote character to usepublic static void appendEscaped(StringBuffer b, String s, char e)
b - the buffer to append tos - the String to appende - the character to escapeCopyright © 2000–2015 PanEris. All rights reserved.