net.fortuna.ical4j.util
Class Strings
java.lang.Object
net.fortuna.ical4j.util.Strings
public final class Strings
extends java.lang.Object
$Id: Strings.java,v 1.8 2008/12/16 12:34:53 fortuna Exp $ [23-Apr-2004]
Utility methods for working with parameters.
static String | LINE_SEPARATOR - A string used to denote the start (and end) of iCalendar content lines.
|
static Pattern | PARAM_QUOTE_PATTERN - Defines a regular expression representing all parameter strings that
should be quoted.
|
static String | escape(String aValue) - Convenience method for escaping special characters.
|
static String | quote(Object aValue) - Convenience method for adding quotes.
|
static String | unescape(String aValue) - Convenience method for replacing escaped special characters
with their original form.
|
static String | unquote(String aValue) - Convenience method for removing surrounding quotes
from a string value.
|
static String | valueOf(Object object) - Wraps
java.lang.String.valueOf() to return an empty string
where the specified object is null.
|
LINE_SEPARATOR
public static final String LINE_SEPARATOR
A string used to denote the start (and end) of iCalendar content lines.
PARAM_QUOTE_PATTERN
public static final Pattern PARAM_QUOTE_PATTERN
Defines a regular expression representing all parameter strings that
should be quoted.
escape
public static String escape(String aValue)
Convenience method for escaping special characters.
aValue
- a string value to escape
- an escaped representation of the specified
string
quote
public static String quote(Object aValue)
Convenience method for adding quotes. The specified
object is converted to a string representation by
calling its toString()
method.
aValue
- an object to quote
unescape
public static String unescape(String aValue)
Convenience method for replacing escaped special characters
with their original form.
aValue
- a string value to unescape
- a string representation of the specified
string with escaped characters replaced with their
original form
unquote
public static String unquote(String aValue)
Convenience method for removing surrounding quotes
from a string value.
aValue
- a string to remove quotes from
valueOf
public static String valueOf(Object object)
Wraps java.lang.String.valueOf()
to return an empty string
where the specified object is null.