Package org.apache.catalina.util
Class StringUtil
java.lang.Object
org.apache.catalina.util.StringUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
Splits a comma-separated string into an array of String values.
-
Constructor Details
-
StringUtil
public StringUtil()
-
-
Method Details
-
splitCommaSeparated
Splits a comma-separated string into an array of String values. Whitespace around the commas is removed. Null or empty values will return a zero-element array.- Parameters:
s
- The string to split by commas.- Returns:
- An array of String values.
-