Class RegularGroupFormatter
java.lang.Object
net.sf.saxon.expr.number.NumericGroupFormatter
net.sf.saxon.expr.number.RegularGroupFormatter
- All Implemented Interfaces:
Serializable
A RegularGroupFormatter is a NumericGroupFormatter that inserts a separator
at constant intervals through a number: for example, a comma after every three
digits counting from the right.
- See Also:
-
Field Summary
Fields inherited from class NumericGroupFormatter
adjustedPicture -
Constructor Summary
ConstructorsConstructorDescriptionRegularGroupFormatter(int grpSize, String grpSep, String adjustedPicture) Create a RegularGroupFormatter -
Method Summary
Modifier and TypeMethodDescriptionformat(FastStringBuffer value) Reformat a number to add grouping separatorsGet the grouping separator to be used.Methods inherited from class NumericGroupFormatter
getAdjustedPicture
-
Constructor Details
-
RegularGroupFormatter
-
-
Method Details
-
format
Description copied from class:NumericGroupFormatterReformat a number to add grouping separators- Specified by:
formatin classNumericGroupFormatter- Parameters:
value- a buffer holding the number to be reformatted- Returns:
- the reformatted number
-
getSeparator
Get the grouping separator to be used. If more than one is used, return the last. If no grouping separators are used, return null- Specified by:
getSeparatorin classNumericGroupFormatter- Returns:
- the grouping separator
-