Package de.uplanet.lucy.util
Klasse TextUtil
java.lang.Object
de.uplanet.lucy.util.TextUtil
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic StringlistToString(Collection<String> p_list) Serializes a list of strings to a string using"|"as delimiter and"0"as escape character.static StringlistToString(Collection<String> p_list, String p_strDel, String p_strEsc) Serializes a list of strings to a string.static LinkedList<String> stringToList(String p_str) Deserialize a list of strings that was previously serialized with"|"as delimiter and"0"as escape character.static LinkedList<String> stringToList(String p_str, String p_strDel, String p_strEsc) Deserialize an array that was previously serialized usingTextUtil#listToString(Collection, String, String).
-
Methodendetails
-
listToString
Serializes a list of strings to a string using"|"as delimiter and"0"as escape character.Note that
stringToListandlistToStringare inverse functions.- Parameter:
p_list- The list to serialize.- Gibt zurück:
- The serialized array list.
-
listToString
Serializes a list of strings to a string.Note that
stringToListandlistToStringare inverse functions.- Parameter:
p_list- The list to serialize.p_strDel- The delimiter sequence to use.p_strEsc- The escape sequence to use.- Gibt zurück:
- The serialized array list.
-
stringToList
Deserialize a list of strings that was previously serialized with"|"as delimiter and"0"as escape character.Note that
stringToListandlistToStringare inverse functions.- Parameter:
p_str- The string containing the serialized array.- Gibt zurück:
- The deserialized array, or an empty list, if the given input is
null, or empty.
-
stringToList
Deserialize an array that was previously serialized usingTextUtil#listToString(Collection, String, String).Note that
stringToListandlistToStringare inverse functions.- Parameter:
p_str- The string containing the serialized array.p_strDel- The delimiter sequence to use.p_strEsc- The escape sequence to use.- Gibt zurück:
- The deserialized array, or an empty list, if the given input is
null, or empty.
-