|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.util.StringUtil
public class StringUtil
Provides utility methods for manipulating and parsing Strings.
Constructor Summary | |
---|---|
StringUtil()
|
Method Summary | |
---|---|
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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringUtil()
Method Detail |
---|
public static String[] standardSplit(String input)
input
- the String to split apart
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |