|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.icl.saxon.number.NumberFormatter
public class NumberFormatter
Class NumberFormatter defines a method to format a Vector of integers as a character string according to a supplied format specification.
Constructor Summary | |
---|---|
NumberFormatter()
|
Method Summary | |
---|---|
String |
format(int number,
int groupSize,
String groupSeparator,
String letterValue,
Numberer numberer)
Format a single number. |
String |
format(Vector numbers,
int groupSize,
String groupSeparator,
String letterValue,
Numberer numberer)
Format a vector of numbers. |
void |
prepare(String format)
Prepare the format pattern. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NumberFormatter()
Method Detail |
---|
public void prepare(String format)
format
- the format specification. Contains one of the following values:public String format(Vector numbers, int groupSize, String groupSeparator, String letterValue, Numberer numberer)
numbers
- the numbers to be formatted (a sequence of integer values)
public String format(int number, int groupSize, String groupSeparator, String letterValue, Numberer numberer)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |