Code example for DecimalFormat

Methods: setParseBigDecimal

0
    if (format == null)
    { 
      throw new NullPointerException("The number format given must not be null.");
    } 
    final DecimalFormat dfmt = (DecimalFormat) format;
    dfmt.setParseBigDecimal(true);
    super.setFormatter(dfmt);
  } 
 
  /** 
   * Synthesizes a pattern string that represents the current state of this Format object. 
   * 
   * @return the pattern string of the format object contained in this filter. 
   */ 
  public String getFormatString()
  { 
    return getDecimalFormat().toPattern();
  } 
 
  /** 
   * Applies a format string to the internal <code>DecimalFormat</code> instance.