public class DecimalFormatCache
extends java.lang.Object
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 and Description |
---|
DecimalFormatCache() |
Modifier and Type | Method and Description |
---|---|
static java.text.DecimalFormat |
getDecimalFormat(int dec)
Returns a cached
DecimalFormat instance for the given number of decimal digits. |
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.