org.das2.util
Class NumberFormatUtil

java.lang.Object
  extended by org.das2.util.NumberFormatUtil

public class NumberFormatUtil
extends java.lang.Object


Constructor Summary
NumberFormatUtil()
           
 
Method Summary
static java.text.DecimalFormat getDecimalFormat()
          handles the localization problem (bug 0000294) by always returning a DecimalFormat for Locale.US.
static java.text.DecimalFormat getDecimalFormat(java.lang.String spec)
          handles the localization problem (bug 0000294) by always returning a DecimalFormat for Locale.US.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberFormatUtil

public NumberFormatUtil()
Method Detail

getDecimalFormat

public static java.text.DecimalFormat getDecimalFormat()
handles the localization problem (bug 0000294) by always returning a DecimalFormat for Locale.US. (Sorry, rest of world.)

Throws:
java.lang.ClassCastException - if for some reason, NumberFormat.getInstance doesn't return DecimalFormat.

getDecimalFormat

public static java.text.DecimalFormat getDecimalFormat(java.lang.String spec)
handles the localization problem (bug 0000294) by always returning a DecimalFormat for Locale.US. (Sorry, rest of world.)

Throws:
java.lang.ClassCastException - if for some reason, NumberFormat.getInstance doesn't return DecimalFormat.