|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.number.NumericGroupFormatter net.sf.saxon.expr.number.RegularGroupFormatter
public class RegularGroupFormatter
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.
Constructor Summary | |
---|---|
RegularGroupFormatter(int grpSize,
String grpSep)
Create a RegularGroupFormatter |
Method Summary | |
---|---|
String |
format(FastStringBuffer value)
Reformat a number to add grouping separators |
String |
getSeparator()
Get the grouping separator to be used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegularGroupFormatter(int grpSize, String grpSep)
grpSize
- the grouping size. If zero, no grouping separators are insertedgrpSep
- the grouping separator (normally a single character, but may be a surrogate pair)Method Detail |
---|
public String format(FastStringBuffer value)
NumericGroupFormatter
format
in class NumericGroupFormatter
value
- a buffer holding the number to be reformatted
public String getSeparator()
getSeparator
in class NumericGroupFormatter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |