|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pluto.util.StringUtils
public class StringUtils
Static class hosting a couple of utility methods around strings.
Method Summary | |
---|---|
static String[] |
copy(String[] source)
TODO: can't we just use String[].clone()? |
static Map |
copyParameters(Map parameters)
Deep-clones a parameter map. |
static String |
getMimeTypeWithoutEncoding(String mimeType)
Strips the specified mime type by removing the character encoding specified at the end of the mime type (all characters after the ';'). |
static String |
replace(String source,
String pattern,
String replace)
Replaces all occurrences of a pattern within a string by a replacement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String replace(String source, String pattern, String replace)
source
- the string that should be searched.pattern
- the pattern that should be replaced.replace
- the replacement that should be inserted instead of the
pattern.
public static String[] copy(String[] source)
source
-
public static Map copyParameters(Map parameters)
parameters
- the parameter map to deep-clone.
public static String getMimeTypeWithoutEncoding(String mimeType)
mimeType
- the mime type to strip.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |