public class DataHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
| Constructor and Description |
|---|
DataHelper()
This is the default constructor for this class.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
arrayToString(java.lang.String[] array,
java.lang.String sep)
This method converts an array of
String objects ("tokens") to one String object,
delimiting the tokens using a given separator. |
static java.lang.String[] |
stringToArray(java.lang.String value,
java.lang.String sep)
This method converts a
String object to an array of String objects. |
static java.lang.String |
stringToHexString(java.lang.String iString)
This method converts a
Stringobject representing a number in decimal format to a
String object representing a number in hexadecimal format. |
public static final java.lang.String COPYRIGHT
public DataHelper()
public static java.lang.String arrayToString(java.lang.String[] array,
java.lang.String sep)
String objects ("tokens") to one String object,
delimiting the tokens using a given separator.array - An array of String objects.seperator - A token separator.String representation of the specified array with each element separated by the
given separator.public static java.lang.String[] stringToArray(java.lang.String value,
java.lang.String sep)
String object to an array of String objects.
The array is made up of the tokens of the original String object that are delimited
by the given separator.value - The String object to be converted to an array.separator - The token separator.String objects.public static java.lang.String stringToHexString(java.lang.String iString)
Stringobject representing a number in decimal format to a
String object representing a number in hexadecimal format.value - A a String representation of a number in decimal format.String representation of a the hexadecimal value of the given number.