StringUtils.delimitedListToStringArray

Take a {@code string} that is a delimited list and convert it into a {@code string} array. <p>A single {@code delimiter} may consist of more than one character, but it will still be considered as a single delimiter string, rather than as bunch of potential delimiter characters, in contrast to {@link #tokenizeToStringArray}. @param str the input {@code string} (potentially {@code null} or empty) @param delimiter the delimiter between elements (this is a single delimiter, rather than a bunch individual delimiter characters) @param charsToDelete a set of characters to delete; useful for deleting unwanted line breaks: e.g. "\r\n\f" will delete all new lines and line feeds in a {@code string} @return an array of the tokens in the list @see #tokenizeToStringArray

  1. string[] delimitedListToStringArray(string str, string delimiter)
  2. string[] delimitedListToStringArray(string str, string delimiter, string charsToDelete)
    class StringUtils
    static
    string[]
    delimitedListToStringArray
    (
    string str
    ,
    string delimiter
    ,)

Meta