|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.util.DecimalFormatCache
public class DecimalFormatCache
This class provides a cache for DecimalFormat
instance. DecimalFormat
itself
is not thread-safe but since FOP needs to format a lot of numbers the same way, it shall
be cached in a ThreadLocal
.
Constructor Summary | |
---|---|
DecimalFormatCache()
|
Method Summary | |
---|---|
static java.text.DecimalFormat |
getDecimalFormat(int dec)
Returns a cached DecimalFormat instance for the given number of decimal digits. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DecimalFormatCache()
Method Detail |
---|
public static java.text.DecimalFormat getDecimalFormat(int dec)
DecimalFormat
instance for the given number of decimal digits.
dec
- the number of decimal digits.
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |