|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.zwares.base.util.TextParser
This class is used as a parser to parse a String to different data types / arrays.
| Field Summary | |
static java.lang.String |
DELIM
|
| Constructor Summary | |
TextParser()
|
|
| Method Summary | |
static boolean |
toBoolean(java.lang.String s)
Static method used to convert a string to a boolean value. |
static double |
toDouble(java.lang.String s)
Static method used to convert a string to a double value. |
static double[] |
toDoubleArray(java.lang.String s)
Static method used to convert a string to a double array using the default delimiter. |
static double[] |
toDoubleArray(java.lang.String s,
java.lang.String delimiter)
Static method used to convert a string to a double array using the given delimiter. |
static int |
toInt(java.lang.String s)
Static method used to convert a string to an integer value. |
static java.lang.String[] |
toStringArray(int[] ia)
Static method used to convert an integer array to a string array. |
static java.lang.String[] |
toStringArray(java.lang.String s)
Static method used to convert a string to string array using the default delimiter. |
static java.lang.String[] |
toStringArray(java.lang.String s,
java.lang.String delimiter)
Static method used to convert a string to string array using the given delimiter. |
| 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 DELIM
| Constructor Detail |
public TextParser()
| Method Detail |
public static java.lang.String[] toStringArray(java.lang.String s)
public static java.lang.String[] toStringArray(java.lang.String s,
java.lang.String delimiter)
public static java.lang.String[] toStringArray(int[] ia)
public static double[] toDoubleArray(java.lang.String s)
public static double[] toDoubleArray(java.lang.String s,
java.lang.String delimiter)
public static int toInt(java.lang.String s)
public static double toDouble(java.lang.String s)
public static boolean toBoolean(java.lang.String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||