public static HashMap<String, String> parseAccountString(final String parseString) {

        // 1. split name value pairs by splitting on the ';' character
        final String[] valuePairs = parseString.split(";");
        final HashMap<String, String> retVals = new HashMap<String, String>();

        // 2. for each field value pair parse into appropriate map entries
        for (int m = 0; m < valuePairs.length; m++) {
            if (valuePairs[m].length() == 0) {
                continue;
            }
            final int equalDex = valuePairs[m].indexOf("=");
            if (equalDex < 1) {
                throw new IllegalArgumentException(SR.INVALID_CONNECTION_STRING);
            }

            final String key = valuePairs[m].substring(0, equalDex);
            final String value = valuePairs[m].substring(equalDex + 1);

            // 2.1 add to map
            retVals.put(key, value);
        }

        return retVals;
    }
public static HashMap<String, String> parseAccountString(final String parseString) {

        
        final String[] valuePairs = parseString.split(";");
        final HashMap<String, String> retVals = new HashMap<String, String>();

        
        for (int m = 0; m < valuePairs.length; m++) {
            if (valuePairs[m].length() == 0) {
                continue;
            }
            final int equalDex = valuePairs[m].indexOf("=");
            if (equalDex < 1) {
                throw new IllegalArgumentException(SR.INVALID_CONNECTION_STRING);
            }

            final String key = valuePairs[m].substring(0, equalDex);
            final String value = valuePairs[m].substring(equalDex + 1);

            
            retVals.put(key, value);
        }

        return retVals;
    }
public static HashMap < String , String > parseAccountString ( final String parseString ) { // 1. split name value pairs by splitting on the ';' character final String [ ] valuePairs = parseString . split ( ";" ) ; final HashMap < String , String > retVals = new HashMap < String , String > ( ) ; // 2. for each field value pair parse into appropriate map entries for ( int m = 0 ; m < valuePairs . length ; m ++ ) { if ( valuePairs [ m ] . length ( ) == 0 ) { continue ; } final int equalDex = valuePairs [ m ] . indexOf ( "=" ) ; if ( equalDex < 1 ) { throw new IllegalArgumentException ( SR . INVALID_CONNECTION_STRING ) ; } final String key = valuePairs [ m ] . substring ( 0 , equalDex ) ; final String value = valuePairs [ m ] . substring ( equalDex + 1 ) ; // 2.1 add to map retVals . put ( key , value ) ; } return retVals ; }
Parses a connection string and returns its values as a hash map of key/value pairs.

@param parseString
A <code>String</code> that represents the connection string to parse.

@return A <code>java.util.HashMap</code> object that represents the hash map of the key / value pairs parsed from
the connection string.
Parses a connection string and returns its values as a hash map of key / value pairs .