コード例 #1
0
ファイル: StringUtil.java プロジェクト: artyama/myspris
 public static String[] stripAll(String[] strs) {
   return org.apache.commons.lang.StringUtils.stripAll(strs);
 }
コード例 #2
0
 /**
  * Transforms a comma-separated list String property in to a array of trimmed strings.
  *
  * <p>This works even if they are separated by whitespace characters (space char, EOL, ...)
  */
 static String[] getListFromProperty(Map<String, String> properties, String key) {
   return (String[])
       ObjectUtils.defaultIfNull(
           StringUtils.stripAll(StringUtils.split(properties.get(key), ',')), new String[0]);
 }