src/HTTPClient/DefaultAuthHandler.java
/**
     * Split a list into an array of Strings, using sep as the
     * separator and removing whitespace around the separator.
     */
Split a list into an array of Strings, using sep as the
separator and removing whitespace around the separator.
Split a list into an array of Strings using sep as the separator and removing whitespace around the separator .
private static String[] splitList(String str, String sep)
    {
	if (str == null)  return new String[0];
	StringTokenizer tok = new StringTokenizer(str, sep);
	String[] list = new String[tok.countTokens()];
	for (int idx=0; idx<list.length; idx++)
	    list[idx] = tok.nextToken().trim();
	return list;
    }
private static String [ ] splitList ( String str , String sep ) { if ( str == null ) return new String [ 0 ] ; StringTokenizer tok = new StringTokenizer ( str , sep ) ; String [ ] list = new String [ tok . countTokens ( ) ] ; for ( int idx = 0 ; idx < list . length ; idx ++ ) list [ idx ] = tok . nextToken ( ) . trim ( ) ; return list ; }
Split a list into an array of Strings, using sep as the
 separator and removing whitespace around the separator.
Split a list into an array of Strings using sep as the separator and removing whitespace around the separator .