| java.lang.Object org.acegisecurity.util.StringSplitUtils
StringSplitUtils | final public class StringSplitUtils (Code) | | Provides several String manipulation methods.
author: Ben Alex version: $Id: StringSplitUtils.java 1966 2007-08-28 00:31:30Z luke_t $ |
split | public static String[] split(String toSplit, String delimiter)(Code) | | Splits a String at the first instance of the delimiter.Does not include the delimiter in
the response.
Parameters: toSplit - the string to split Parameters: delimiter - to split the string up with a two element array with index 0 being before the delimiter, and index 1 being after the delimiter(neither element includes the delimiter) throws: IllegalArgumentException - if an argument was invalid |
splitEachArrayElementAndCreateMap | public static Map splitEachArrayElementAndCreateMap(String[] array, String delimiter, String removeCharacters)(Code) | | Takes an array of String s, and for each element removes any instances of
removeCharacter , and splits the element based on the delimiter . A Map is
then generated, with the left of the delimiter providing the key, and the right of the delimiter providing the
value.Will trim both the key and value before adding to the Map .
Parameters: array - the array to process Parameters: delimiter - to split each element using (typically the equals symbol) Parameters: removeCharacters - one or more characters to remove from each element prior to attempting the splitoperation (typically the quotation mark symbol) or null if no removal should occur a Map representing the array contents, or null if the array to process wasnull or empty |
splitIgnoringQuotes | public static String[] splitIgnoringQuotes(String str, char separatorChar)(Code) | | Splits a given string on the given separator character, skips the contents of quoted substrings
when looking for separators.
Introduced for use in DigestProcessingFilter (see SEC-506).
This was copied and modified from commons-lang StringUtils
|
|
|