public class StringUtil
extends java.lang.Object
Constructor and Description |
---|
StringUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
combineParts(java.lang.Object... messageParts)
Combines a bunch of objects into a single String.
|
static java.lang.String[] |
standardSplit(java.lang.String input)
Splits apart the input String on any whitespace and/or commas.
|
static java.lang.String |
uriFragmentEncode(java.lang.String value)
Encode a URI fragment as required by RFC 3986.
|
static java.lang.String |
urlDecode(java.lang.String value)
URL-decodes
value using the UTF-8 charset. |
static java.lang.String |
urlEncode(java.lang.String value)
URL-encodes
value using the UTF-8 charset. |
public static java.lang.String[] standardSplit(java.lang.String input)
input
- the String to split apartpublic static java.lang.String combineParts(java.lang.Object... messageParts)
public static java.lang.String urlEncode(java.lang.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 java.lang.String urlDecode(java.lang.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 java.lang.String uriFragmentEncode(java.lang.String value)
value
- The string to encode? Copyright 2005-2006, Stripes Development Team.