public static String[] splitSuffix(String suffix) {
    String theSuffix = suffix;

    String[] parts;
    if (StringUtils.isBlank(theSuffix)) {
      // no suffix given - return empty list
      parts = new String[0];
    }
    else {
      // remove leading slash
      if (theSuffix.startsWith(ESCAPED_SLASH)) {
        theSuffix = theSuffix.substring(ESCAPED_SLASH.length());
      }

      // remove file extension
      theSuffix = StringUtils.substringBeforeLast(theSuffix, ".");

      // split the suffix to extract the paths of the selected components
      parts = StringUtils.split(theSuffix, SUFFIX_PART_DELIMITER);
    }

    return parts;
  }
public static String [ ] splitSuffix ( String suffix ) { String theSuffix = suffix ; String [ ] parts ; if ( StringUtils . isBlank ( theSuffix ) ) { parts = new String [ 0 ] ; } else { if ( theSuffix . startsWith ( ESCAPED_SLASH ) ) { theSuffix = theSuffix . substring ( ESCAPED_SLASH . length ( ) ) ; } theSuffix = StringUtils . substringBeforeLast ( theSuffix , "." ) ; parts = StringUtils . split ( theSuffix , SUFFIX_PART_DELIMITER ) ; } return parts ; }
Split suffix
@param suffix Suffix
@return Suffix parts