2009-01-09 1.2.0

org.eclipse.soda.dk.device.nslog.servlet
Class CommonUtils

java.lang.Object
  extended by org.eclipse.soda.dk.device.nslog.servlet.CommonUtils

public class CommonUtils
extends java.lang.Object

Since:
1.0
Version:
1.2.0

Constructor Summary
CommonUtils()
           
 
Method Summary
static java.lang.String CommaSplitString(java.lang.String[] StrArray)
          Build a comma-delimited String from a String[]
static java.util.Dictionary ParseNestedDictionary(java.lang.String data, java.util.Dictionary wrapper)
          Parse nested dictionary with the specified data and wrapper parameters and return the Dictionary result.
static java.util.Dictionary ParseSimpleDictionary(java.lang.String data, java.util.Dictionary passed)
          Parse simple dictionary with the specified data and passed parameters and return the Dictionary result.
static java.lang.String[] SplitString(java.lang.String s, java.lang.String delimiter)
          Split string with the specified s, delimiter and length parameters and return the String[] result.
static java.util.Dictionary StringtoDictionaryLoop(java.util.Dictionary dict)
          Stringto dictionary loop with the specified dict parameter and return the Dictionary result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonUtils

public CommonUtils()
Method Detail

CommaSplitString

public static java.lang.String CommaSplitString(java.lang.String[] StrArray)
Build a comma-delimited String from a String[]

Parameters:
StrArray - The str array (String[]) parameter.
Returns:
The comma-delimited (String) value.

ParseNestedDictionary

public static java.util.Dictionary ParseNestedDictionary(java.lang.String data,
                                                         java.util.Dictionary wrapper)
Parse nested dictionary with the specified data and wrapper parameters and return the Dictionary result.

Parameters:
data - The data (String) parameter.
wrapper - The wrapper (Dictionary) parameter.
Returns:
Results of the parse nested dictionary (Dictionary) value.

ParseSimpleDictionary

public static java.util.Dictionary ParseSimpleDictionary(java.lang.String data,
                                                         java.util.Dictionary passed)
Parse simple dictionary with the specified data and passed parameters and return the Dictionary result.

Parameters:
data - The data (String) parameter.
passed - The passed (Dictionary) parameter.
Returns:
Results of the parse simple dictionary (Dictionary) value.

SplitString

public static java.lang.String[] SplitString(java.lang.String s,
                                             java.lang.String delimiter)
Split string with the specified s, delimiter and length parameters and return the String[] result.

Parameters:
s - The s (String) parameter.
delimiter - The delimiter (String) parameter.
Returns:
Results of the split string (String[]) value.
See Also:
CommaSplitString(String[])

StringtoDictionaryLoop

public static java.util.Dictionary StringtoDictionaryLoop(java.util.Dictionary dict)
Stringto dictionary loop with the specified dict parameter and return the Dictionary result.

Parameters:
dict - The dict (Dictionary) parameter.
Returns:
Results of the stringto dictionary loop (Dictionary) value.

2009-01-09 1.2.0

Copyright (c) 2009 IBM. See license in Legal section.