com.ibm.commerce.datatype
Class DataHelper

java.lang.Object
  |
  +--com.ibm.commerce.datatype.DataHelper

public class DataHelper
extends java.lang.Object

DataHelper contains the static methods for data conversion.


Field Summary
static java.lang.String COPYRIGHT
          The IBM copyright notice field.
 
Constructor Summary
DataHelper()
          Creates the Data Helper object.
 
Method Summary
static java.lang.String arrayToString(java.lang.String[] array, java.lang.String sep)
          Converts a string array to a string with each element of the array separated by the specified separator.
static java.lang.String[] stringToArray(java.lang.String value, java.lang.String sep)
          Convert a string with values separated by a separator to an array of strings.
static java.lang.String stringToHexString(java.lang.String iString)
          Converts a string representing a number in decimal format to a hexadecimal string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
The IBM copyright notice field.
See Also:
Constant Field Values
Constructor Detail

DataHelper

public DataHelper()
Creates the Data Helper object.
Method Detail

arrayToString

public static java.lang.String arrayToString(java.lang.String[] array,
                                             java.lang.String sep)
Converts a string array to a string with each element of the array separated by the specified separator.
Parameters:
array - the array of Strings.
Returns:
A string representation of the specified array with each element separated by the given separator.

stringToArray

public static java.lang.String[] stringToArray(java.lang.String value,
                                               java.lang.String sep)
Convert a string with values separated by a separator to an array of strings.
Parameters:
value - the string to be converted to an array
Returns:
A string array of the given string using the separator as the key to separate elements of the string into individual strings.

stringToHexString

public static java.lang.String stringToHexString(java.lang.String iString)
Converts a string representing a number in decimal format to a hexadecimal string.
Returns:
A string that represents the HEX value of the given number.