public final class Strings
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LINE_SEPARATOR
A string used to denote the start (and end) of iCalendar content lines.
|
static java.util.regex.Pattern |
PARAM_QUOTE_PATTERN
Defines a regular expression representing all parameter strings that
should be quoted.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
escape(java.lang.String aValue)
Convenience method for escaping special characters.
|
static java.lang.String |
escapeNewline(java.lang.String value) |
static java.lang.String |
quote(java.lang.Object aValue)
Convenience method for adding quotes.
|
static java.lang.String |
unescape(java.lang.String aValue)
Convenience method for replacing escaped special characters
with their original form.
|
static java.lang.String |
unquote(java.lang.String aValue)
Convenience method for removing surrounding quotes
from a string value.
|
static java.lang.String |
valueOf(java.lang.Object object)
Wraps
java.lang.String.valueOf() to return an empty string
where the specified object is null. |
public static final java.util.regex.Pattern PARAM_QUOTE_PATTERN
public static final java.lang.String LINE_SEPARATOR
public static java.lang.String quote(java.lang.Object aValue)
toString()
method.aValue
- an object to quotepublic static java.lang.String unquote(java.lang.String aValue)
aValue
- a string to remove quotes frompublic static java.lang.String escape(java.lang.String aValue)
aValue
- a string value to escapepublic static java.lang.String unescape(java.lang.String aValue)
aValue
- a string value to unescapepublic static java.lang.String escapeNewline(java.lang.String value)
public static java.lang.String valueOf(java.lang.Object object)
java.lang.String.valueOf()
to return an empty string
where the specified object is null.object
- an object instance