|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.StringSplitter
public class StringSplitter
Utility class for splitting delimited values.
| Method Summary | |
|---|---|
static Map<String,String> |
map(String string)
|
static Map<String,String> |
map(String string,
String delimiter)
Splits a String into a map. |
static List<String> |
split(String string)
Simple util method to split comma separated values. |
static List<String> |
split(String string,
String delimiter)
Simple util method to split delimited values to a list. |
static List<String> |
splitFunctions(CharSequence attribute)
Splits up a String, (using comma delimiter), but takes into account brackets. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static List<String> split(String string,
String delimiter)
String.split(), but returns a List instead of an array, and trims the values.
string - the string to splitdelimiter -
public static List<String> split(String string)
string - the string to split
split(String, String)public static List<String> splitFunctions(CharSequence attribute)
public static Map<String,String> map(String string)
public static Map<String,String> map(String string,
String delimiter)
delimiter - Delimiter to split entries. If this is a newline, then the string will be
read like properties
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||