Method Summary |
|
public static String | convert(int intNum) |
public static int | getChange(String quoteString) |
public static int | getHigh(String quoteString) |
public static int | getLow(String quoteString) |
public static String | getName(String quoteString) |
public static int | getOpen(String quoteString) |
public static int | getPrevious(String quoteString) |
public static int | getPrice(String quoteString) |
public static String | getStringChange(String quoteString) |
public static String | getStringHigh(String quoteString) |
public static String | getStringLow(String quoteString) |
public static String | getStringOpen(String quoteString) |
public static String | getStringPrevious(String quoteString) |
public static String | getStringPrice(String quoteString) |
public static String | getTime(String quoteString) |
public static int | makeInt(String str) Take a String representation of an int and the number of
decimal places that the String carries and make an
int out of it
Since there is no floating point support in MIDP/CLDC, we have to
convert the decimal numbers into Integer s.
We do this by:
Looking at only the first 7 significant characters which, because
of the decimal, means the first 6 numbers from left to right.
Looking at a maximum of 4 decimal places
We remove the decimal character (if there is one) and concatenate
the numbers before and after the decimal so that we can convert
to an integer and manipulate the value as a number
After doing this for each number, we have
int values but no
notion of where the decimal place was. |
public static void | parse(String quoteString) Takes a String from the quote server or database and
parses the string into each field. |