public class StringUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
VERY_UNLIKELY_STRING
INTERNAL: A string used internally for various control flow
purposes.
|
Constructor and Description |
---|
StringUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
escapeHTMLEntities(String value)
INTERNAL: Filters the specified string for characters that are
senstive to HTML interpreters, returning the string with these
characters replaced by the corresponding character entities.
|
static void |
escapeHTMLEntities(String value,
Writer out)
INTERNAL: Filters the specified string for characters that are
senstive to HTML interpreters, writing the string with these
characters replaced by the corresponding character entities to
the given writer.
|
static String |
makeRandomId(int length)
INTERNAL: Make a random ID-like string of the given number of
characters.
|
static String |
normalizeId(String name)
INTERNAL: Creates a candidate ID from an input string.
|
public static final String VERY_UNLIKELY_STRING
public static String escapeHTMLEntities(String value)
value
- The string to be filtered and returnedpublic static void escapeHTMLEntities(String value, Writer out) throws IOException
value
- The string to be filtered and written.IOException
public static String makeRandomId(int length)
public static String normalizeId(String name)