public class StringUtil extends Object
| Constructor and Description |
|---|
StringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
combineParts(Object... messageParts)
Combines a bunch of objects into a single String.
|
static String[] |
standardSplit(String input)
Splits apart the input String on any whitespace and/or commas.
|
static String |
trimFragment(String url)
Return the specified URL or path string with the fragment part removed.
|
static String |
uriFragmentEncode(String value)
Encode a URI fragment as required by RFC 3986.
|
static String |
urlDecode(String value)
URL-decodes
value using the UTF-8 charset. |
static String |
urlEncode(String value)
URL-encodes
value using the UTF-8 charset. |
public static String[] standardSplit(String input)
input - the String to split apartpublic static String combineParts(Object... messageParts)
public static String urlEncode(String value)
value using the UTF-8 charset. Using this method eliminates the need for
a try/catch since UTF-8 is guaranteed to exist.URLEncoder.encode(String, String)public static String urlDecode(String value)
value using the UTF-8 charset. Using this method eliminates the need for
a try/catch since UTF-8 is guaranteed to exist.URLDecoder.decode(String, String)public static String uriFragmentEncode(String value)
value - The string to encode© Copyright 2005-2006, Stripes Development Team.