| java.lang.Object net.sf.saxon.number.NumberFormatter
NumberFormatter | public class NumberFormatter implements Serializable(Code) | | Class NumberFormatter defines a method to format a ArrayList of integers as a character
string according to a supplied format specification.
author: Michael H. Kay |
format | public CharSequence format(List numbers, int groupSize, String groupSeparator, String letterValue, String ordinal, Numberer numberer)(Code) | | Format a list of numbers.
Parameters: numbers - the numbers to be formatted (a sequence of integer values; it may also containpreformatted strings as part of the error recovery fallback) the formatted output string. |
prepare | public void prepare(String format)(Code) | | Tokenize the format pattern.
Parameters: format - the format specification. Contains one of the following values:- "1": conventional decimal numbering
- "a": sequence a, b, c, ... aa, ab, ac, ...
- "A": sequence A, B, C, ... AA, AB, AC, ...
- "i": sequence i, ii, iii, iv, v ...
- "I": sequence I, II, III, IV, V, ...
This symbol may be preceded and followed by punctuation (any other characters) which iscopied to the output string. |
|
|