站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Uses of Class java.text.NumberFormat - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

JavaTM 2 Platform
Standard Edition

Uses of Class
java.text.NumberFormat

Packages that use NumberFormat
java.text Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages. 
 

Uses of NumberFormat in java.text
 

Subclasses of NumberFormat in java.text
 class ChoiceFormat
          A ChoiceFormat allows you to attach a format to a range of numbers.
 class DecimalFormat
          DecimalFormat is a concrete subclass of NumberFormat for formatting decimal numbers.
 

Fields in java.text declared as NumberFormat
protected  NumberFormat DateFormat.numberFormat
          The number formatter that DateFormat uses to format numbers in dates and times.
 

Methods in java.text that return NumberFormat
static NumberFormat NumberFormat.getInstance()
          Returns the default number format for the current default locale.
static NumberFormat NumberFormat.getInstance(Locale inLocale)
          Returns the default number format for the specified locale.
static NumberFormat NumberFormat.getNumberInstance()
          Returns a general-purpose number format for the current default locale.
static NumberFormat NumberFormat.getNumberInstance(Locale inLocale)
          Returns a general-purpose number format for the specified locale.
static NumberFormat NumberFormat.getCurrencyInstance()
          Returns a currency format for the current default locale.
static NumberFormat NumberFormat.getCurrencyInstance(Locale inLocale)
          Returns a currency format for the specified locale.
static NumberFormat NumberFormat.getPercentInstance()
          Returns a percentage format for the current default locale.
static NumberFormat NumberFormat.getPercentInstance(Locale inLocale)
          Returns a percentage format for the specified locale.
 NumberFormat DateFormat.getNumberFormat()
          Gets the number formatter which this date/time formatter uses to format and parse a time.
 

Methods in java.text with parameters of type NumberFormat
 void DateFormat.setNumberFormat(NumberFormat newNumberFormat)
          Allows you to set the number formatter.
 


JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.