org.web_auth.utils
Class StringUtils

java.lang.Object
  extended byorg.web_auth.utils.StringUtils

public class StringUtils
extends java.lang.Object

Utility class facilitates string related operations.

Version:
1.0
Author:
Zhengrong Tang

Constructor Summary
StringUtils()
           
 
Method Summary
static java.util.HashMap String2KeyValuePairs(java.lang.String str)
          This method parses a string that is in the format of "key1=val1;key2=val2;key3=val3" and returns a HashMap that reflects the key-vaule pairs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

String2KeyValuePairs

public static java.util.HashMap String2KeyValuePairs(java.lang.String str)
This method parses a string that is in the format of "key1=val1;key2=val2;key3=val3" and returns a HashMap that reflects the key-vaule pairs.

Parameters:
str - a string in the format of "key1=val1;key2=val2;key3=val3"
Returns:
a HashMap that reflects the key-value pairs


Copyright © 2003 Zhengrong Tang. All Rights Reserved.