java.lang.Object
net.fortuna.ical4j.util.Strings
$Id$ [23-Apr-2004]
Utility methods for working with parameters.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringConvenience method for escaping special characters.static StringConvenience method for adding quotes.static Stringstatic StringConvenience method for replacing escaped special characters with their original form.static StringConvenience method for removing surrounding quotes from a string value.static StringWrapsjava.lang.String.valueOf()to return an empty string where the specified object is null.
-
Field Details
-
PARAM_QUOTE_PATTERN
Defines a regular expression representing all parameter strings that should be quoted. -
LINE_SEPARATOR
A string used to denote the start (and end) of iCalendar content lines.- See Also:
-
-
Method Details
-
quote
Convenience method for adding quotes. The specified object is converted to a string representation by calling itstoString()method.- Parameters:
aValue- an object to quote- Returns:
- a quoted string
-
quote
-
unquote
Convenience method for removing surrounding quotes from a string value.- Parameters:
aValue- a string to remove quotes from- Returns:
- an un-quoted string
-
escape
Convenience method for escaping special characters.- Parameters:
aValue- a string value to escape- Returns:
- an escaped representation of the specified string
-
unescape
Convenience method for replacing escaped special characters with their original form.- Parameters:
aValue- a string value to unescape- Returns:
- a string representation of the specified string with escaped characters replaced with their original form
-
valueOf
Wrapsjava.lang.String.valueOf()to return an empty string where the specified object is null.- Parameters:
object- an object instance- Returns:
- a string representation of the object
-