<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.util.Locale
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.util.html">This Package</a>  <a href="java.util.ListResourceBundle.html#_top_">Previous</a>  <a href="java.util.Observable.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.util.Locale
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.util.Locale
</pre>
<hr>
<dl>
  <dt> public final class <b>Locale</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
  <dt> implements <a href="java.lang.Cloneable.html#_top_">Cloneable</a>, <a href="java.io.Serializable.html#_top_">Serializable</a>
</dl>
A <code>Locale</code> object represents a specific geographical, political,
 or cultural region. An operation that requires a <code>Locale</code> to perform
 its task is called <em>locale-sensitive</em> and uses the <code>Locale</code>
 to tailor information for the user. For example, displaying a number
 is a locale-sensitive operation--the number should be formatted
 according to the customs/conventions of the user's native country,
 region, or culture.
 <P>
 You create a <code>Locale</code> object using one of the two constructors in
 this class:
 <blockquote>
 <pre>
 Locale(String language, String country)
 Locale(String language, String country, String variant)
 </pre>
 </blockquote>
 The first argument to both constructors is a valid <STRONG>ISO
 Language Code.</STRONG> These codes are the lower-case two-letter
 codes as defined by ISO-639.
 You can find a full list of these codes at a number of sites, such as:
 <BR><a href ="http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt">
 <code>http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt</code></a>
 <P>
 The second argument to both constructors is a valid <STRONG>ISO Country
 Code.</STRONG> These codes are the upper-case two-letter codes
 as defined by ISO-3166.
 You can find a full list of these codes at a number of sites, such as:
 <BR><a href="http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html">
 <code>http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html</code></a>
 <P>
 The second constructor requires a third argument--the <STRONG>Variant.</STRONG>
 The Variant codes are vendor and browser-specific.
 For example, use WIN for Windows, MAC for Macintosh, and POSIX for POSIX.
 Where there are two variants, separate them with an underscore, and
 put the most important one first. For
 example, a Traditional Spanish collation might be referenced, with
 "ES", "ES", "Traditional_WIN".
 <P>
 Because a <code>Locale</code> object is just an identifier for a region,
 no validity check is performed when you construct a <code>Locale</code>.
 If you want to see whether particular resources are available for the
 <code>Locale</code> you construct, you must query those resources. For
 example, ask the <code>NumberFormat</code> for the locales it supports
 using its <code>getAvailableLocales</code> method.
 <BR><STRONG>Note:</STRONG> When you ask for a resource for a particular
 locale, you get back the best available match, not necessarily
 precisely what you asked for. For more information, look at
 <a href="java.util.ResourceBundle.html"><code>ResourceBundle</code></a>.
 <P>
 The <code>Locale</code> class provides a number of convenient constants
 that you can use to create <code>Locale</code> objects for commonly used
 locales. For example, the following creates a <code>Locale</code> object
 for the United States:
 <blockquote>
 <pre>
 Locale.US
 </pre>
 </blockquote>
 <P>
 Once you've created a <code>Locale</code> you can query it for information about
 itself. Use <code>getCountry</code> to get the ISO Country Code and
 <code>getLanguage</code> to get the ISO Language Code. You can
 use <code>getDisplayCountry</code> to get the
 name of the country suitable for displaying to the user. Similarly,
 you can use <code>getDisplayLanguage</code> to get the name of
 the language suitable for displaying to the user. Interestingly,
 the <code>getDisplayXXX</code> methods are themselves locale-sensitive
 and have two versions: one that uses the default locale and one
 that uses the locale specified as an argument.
 <P>
 The JDK provides a number of classes that perform locale-sensitive
 operations. For example, the <code>NumberFormat</code> class formats
 numbers, currency, or percentages in a locale-sensitive manner. Classes
 such as <code>NumberFormat</code> have a number of convenience methods
 for creating a default object of that type. For example, the
 <code>NumberFormat</code> class provides these three convenience methods
 for creating a default <code>NumberFormat</code> object:
 <blockquote>
 <pre>
 NumberFormat.getInstance()
 NumberFormat.getCurrencyInstance()
 NumberFormat.getPercentInstance()
 </pre>
 </blockquote>
 These methods have two variants; one with an explicit locale
 and one without; the latter using the default locale.
 <blockquote>
 <pre>
 NumberFormat.getInstance(myLocale)
 NumberFormat.getCurrencyInstance(myLocale)
 NumberFormat.getPercentInstance(myLocale)
 </pre>
 </blockquote>
 A <code>Locale</code> is the mechanism for identifying the kind of object
 (<code>NumberFormat</code>) that you would like to get. The locale is
 <STRONG>just</STRONG> a mechanism for identifying objects,
 <STRONG>not</STRONG> a container for the objects themselves.
 <P>
 Each class that performs locale-sensitive operations allows you
 to get all the available objects of that type. You can sift
 through these objects by language, country, or variant,
 and use the display names to present a menu to the user.
 For example, you can create a menu of all the collation objects
 suitable for a given language. Such classes must implement these
 three class methods:
 <blockquote>
 <pre>
 public static Locale[] getAvailableLocales()
 public static String getDisplayName(Locale objectLocale,
                                     Locale displayLocale)
 public static final String getDisplayName(Locale objectLocale)
     // getDisplayName will throw MissingResourceException if the locale
     // is not one of the available locales.
 </pre>
 </blockquote>
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.util.ResourceBundle.html#_top_">ResourceBundle</a>, <a href="java.text.Format.html#_top_">Format</a>, <a href="java.text.NumberFormat.html#_top_">NumberFormat</a>, Collation
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#CANADA"><b>CANADA</b></a>
  <dd> Useful constant for country.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#CANADA_FRENCH"><b>CANADA_FRENCH</b></a>
  <dd> Useful constant for country.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#CHINA"><b>CHINA</b></a>
  <dd> Useful constant for country.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#CHINESE"><b>CHINESE</b></a>
  <dd> Useful constant for language.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ENGLISH"><b>ENGLISH</b></a>
  <dd> Useful constant for language.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#FRANCE"><b>FRANCE</b></a>
  <dd> Useful constant for country.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#FRENCH"><b>FRENCH</b></a>
  <dd> Useful constant for language.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#GERMAN"><b>GERMAN</b></a>
  <dd> Useful constant for language.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#GERMANY"><b>GERMANY</b></a>
  <dd> Useful constant for country.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ITALIAN"><b>ITALIAN</b></a>
  <dd> Useful constant for language.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ITALY"><b>ITALY</b></a>
  <dd> Useful constant for country.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#JAPAN"><b>JAPAN</b></a>
  <dd> Useful constant for country.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#JAPANESE"><b>JAPANESE</b></a>
  <dd> Useful constant for language.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#KOREA"><b>KOREA</b></a>
  <dd> Useful constant for country.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#KOREAN"><b>KOREAN</b></a>
  <dd> Useful constant for language.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#PRC"><b>PRC</b></a>
  <dd> Useful constant for country.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#SIMPLIFIED_CHINESE"><b>SIMPLIFIED_CHINESE</b></a>
  <dd> Useful constant for language.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#TAIWAN"><b>TAIWAN</b></a>
  <dd> Useful constant for country.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#TRADITIONAL_CHINESE"><b>TRADITIONAL_CHINESE</b></a>
  <dd> Useful constant for language.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#UK"><b>UK</b></a>
  <dd> Useful constant for country.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#US"><b>US</b></a>
  <dd> Useful constant for country.
</dl>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Locale(java.lang.String, java.lang.String)"><b>Locale</b></a>(String, String)
  <dd>  Construct a locale from language, country.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Locale(java.lang.String, java.lang.String, java.lang.String)"><b>Locale</b></a>(String, String, String)
  <dd>  Construct a locale from language, country, variant.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#clone()"><b>clone</b></a>()
  <dd>  Overrides Cloneable

  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#equals(java.lang.Object)"><b>equals</b></a>(Object)
  <dd>  Compares two Objects for equality.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getCountry()"><b>getCountry</b></a>()
  <dd>  Getter for programmatic name of field,
 an uppercased two-letter ISO-3166 code.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDefault()"><b>getDefault</b></a>()
  <dd>  Common method of getting the current default Locale.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDisplayCountry()"><b>getDisplayCountry</b></a>()
  <dd>  Returns a name for the locale's country that is appropriate for display to the
 user.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDisplayCountry(java.util.Locale)"><b>getDisplayCountry</b></a>(Locale)
  <dd>  Returns a name for the locale's country that is appropriate for display to the
 user.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDisplayLanguage()"><b>getDisplayLanguage</b></a>()
  <dd>  Returns a name for the locale's language that is appropriate for display to the
 user.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDisplayLanguage(java.util.Locale)"><b>getDisplayLanguage</b></a>(Locale)
  <dd>  Returns a name for the locale's language that is appropriate for display to the
 user.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDisplayName()"><b>getDisplayName</b></a>()
  <dd>  Returns a name for the locale that is appropriate for display to the
 user.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDisplayName(java.util.Locale)"><b>getDisplayName</b></a>(Locale)
  <dd>  Returns a name for the locale that is appropriate for display to the
 user.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDisplayVariant()"><b>getDisplayVariant</b></a>()
  <dd>  Returns a name for the locale's variant code that is appropriate for display to the
 user.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDisplayVariant(java.util.Locale)"><b>getDisplayVariant</b></a>(Locale)
  <dd>  Returns a name for the locale's variant code that is appropriate for display to the
 user.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getISO3Country()"><b>getISO3Country</b></a>()
  <dd>  Getter for the three-letter ISO country abbreviation
 of the locale.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getISO3Language()"><b>getISO3Language</b></a>()
  <dd>  Getter for the three-letter ISO language abbreviation
 of the locale.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getLanguage()"><b>getLanguage</b></a>()
  <dd>  Getter for programmatic name of field,
 an lowercased two-letter ISO-639 code.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getVariant()"><b>getVariant</b></a>()
  <dd>  Getter for programmatic name of field.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#hashCode()"><b>hashCode</b></a>()
  <dd>  Override hashCode.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setDefault(java.util.Locale)"><b>setDefault</b></a>(Locale)
  <dd>  Sets the default.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString()"><b>toString</b></a>()
  <dd>  Getter for the programmatic name of the entire locale,
 with the language, country and variant separated by underbars.
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="ENGLISH"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>ENGLISH</b>
<pre>
 public static final <a href="#_top_">Locale</a> ENGLISH
</pre>
<dl>
  <dd> Useful constant for language.<p>
</dl>
<a name="FRENCH"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>FRENCH</b>
<pre>
 public static final <a href="#_top_">Locale</a> FRENCH
</pre>
<dl>
  <dd> Useful constant for language.<p>
</dl>
<a name="GERMAN"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>GERMAN</b>
<pre>
 public static final <a href="#_top_">Locale</a> GERMAN
</pre>
<dl>
  <dd> Useful constant for language.<p>
</dl>
<a name="ITALIAN"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>ITALIAN</b>
<pre>
 public static final <a href="#_top_">Locale</a> ITALIAN
</pre>
<dl>
  <dd> Useful constant for language.<p>
</dl>
<a name="JAPANESE"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>JAPANESE</b>
<pre>
 public static final <a href="#_top_">Locale</a> JAPANESE
</pre>
<dl>
  <dd> Useful constant for language.<p>
</dl>
<a name="KOREAN"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>KOREAN</b>
<pre>
 public static final <a href="#_top_">Locale</a> KOREAN
</pre>
<dl>
  <dd> Useful constant for language.<p>
</dl>
<a name="CHINESE"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>CHINESE</b>
<pre>
 public static final <a href="#_top_">Locale</a> CHINESE
</pre>
<dl>
  <dd> Useful constant for language.<p>
</dl>
<a name="SIMPLIFIED_CHINESE"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>SIMPLIFIED_CHINESE</b>
<pre>
 public static final <a href="#_top_">Locale</a> SIMPLIFIED_CHINESE
</pre>
<dl>
  <dd> Useful constant for language.<p>
</dl>
<a name="TRADITIONAL_CHINESE"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>TRADITIONAL_CHINESE</b>
<pre>
 public static final <a href="#_top_">Locale</a> TRADITIONAL_CHINESE
</pre>
<dl>
  <dd> Useful constant for language.<p>
</dl>
<a name="FRANCE"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>FRANCE</b>
<pre>
 public static final <a href="#_top_">Locale</a> FRANCE
</pre>
<dl>
  <dd> Useful constant for country.<p>
</dl>
<a name="GERMANY"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>GERMANY</b>
<pre>
 public static final <a href="#_top_">Locale</a> GERMANY
</pre>
<dl>
  <dd> Useful constant for country.<p>
</dl>
<a name="ITALY"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>ITALY</b>
<pre>
 public static final <a href="#_top_">Locale</a> ITALY
</pre>
<dl>
  <dd> Useful constant for country.<p>
</dl>
<a name="JAPAN"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>JAPAN</b>
<pre>
 public static final <a href="#_top_">Locale</a> JAPAN
</pre>
<dl>
  <dd> Useful constant for country.<p>
</dl>
<a name="KOREA"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>KOREA</b>
<pre>
 public static final <a href="#_top_">Locale</a> KOREA
</pre>
<dl>
  <dd> Useful constant for country.<p>
</dl>
<a name="CHINA"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>CHINA</b>
<pre>
 public static final <a href="#_top_">Locale</a> CHINA
</pre>
<dl>
  <dd> Useful constant for country.<p>
</dl>
<a name="PRC"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>PRC</b>
<pre>
 public static final <a href="#_top_">Locale</a> PRC
</pre>
<dl>
  <dd> Useful constant for country.<p>
</dl>
<a name="TAIWAN"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>TAIWAN</b>
<pre>
 public static final <a href="#_top_">Locale</a> TAIWAN
</pre>
<dl>
  <dd> Useful constant for country.<p>
</dl>
<a name="UK"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>UK</b>
<pre>
 public static final <a href="#_top_">Locale</a> UK
</pre>
<dl>
  <dd> Useful constant for country.<p>
</dl>
<a name="US"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>US</b>
<pre>
 public static final <a href="#_top_">Locale</a> US
</pre>
<dl>
  <dd> Useful constant for country.<p>
</dl>
<a name="CANADA"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>CANADA</b>
<pre>
 public static final <a href="#_top_">Locale</a> CANADA
</pre>
<dl>
  <dd> Useful constant for country.<p>
</dl>
<a name="CANADA_FRENCH"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>CANADA_FRENCH</b>
<pre>
 public static final <a href="#_top_">Locale</a> CANADA_FRENCH
</pre>
<dl>
  <dd> Useful constant for country.<p>
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="Locale"></a>
<a name="Locale(java.lang.String, java.lang.String, java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Locale</b>
<pre>
 public Locale(<a href="java.lang.String.html#_top_">String</a> language,
               <a href="java.lang.String.html#_top_">String</a> country,
               <a href="java.lang.String.html#_top_">String</a> variant)
</pre>
<dl>
  <dd> Construct a locale from language, country, variant.
 NOTE:  ISO 639 is not a stable standard; some of the language codes it defines
 (specifically iw, ji, and in) have changed.  This constructor accepts both the
 old codes (iw, ji, and in) and the new codes (he, yi, and id), but all other
 API on Locale will return only the OLD codes.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> language - lowercase two-letter ISO-639 code.
    <dd> country - uppercase two-letter ISO-3166 code.
    <dd> variant - vendor and browser specific code. See class description.
  </dl></dd>
</dl>
<a name="Locale(java.lang.String, java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Locale</b>
<pre>
 public Locale(<a href="java.lang.String.html#_top_">String</a> language,
               <a href="java.lang.String.html#_top_">String</a> country)
</pre>
<dl>
  <dd> Construct a locale from language, country.
 NOTE:  ISO 639 is not a stable standard; some of the language codes it defines
 (specifically iw, ji, and in) have changed.  This constructor accepts both the
 old codes (iw, ji, and in) and the new codes (he, yi, and id), but all other
 API on Locale will return only the OLD codes.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> language - lowercase two-letter ISO-639 code.
    <dd> country - uppercase two-letter ISO-3166 code.
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getDefault()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDefault"><b>getDefault</b></a>
<pre>
 public static <a href="#_top_">Locale</a> getDefault()
</pre>
<dl>
  <dd> Common method of getting the current default Locale.
 Used for the presentation: menus, dialogs, etc.
 Generally set once when your applet or application is initialized,
 then never reset. (If you do reset the default locale, you
 probably want to reload your GUI, so that the change is reflected
 in your interface.)
 <p>More advanced programs will allow users to use different locales
 for different fields, e.g. in a spreadsheet.
 <BR>Note that the initial setting will match the host system.
<p>
</dl>
<a name="setDefault(java.util.Locale)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setDefault"><b>setDefault</b></a>
<pre>
 public static synchronized void setDefault(<a href="#_top_">Locale</a> newLocale)
</pre>
<dl>
  <dd> Sets the default.
 Normally set once at the beginning of applet or application,
 then never reset. <code>setDefault</code> does not reset the host locale.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> newLocale - Locale to set to.
  </dl></dd>
</dl>
<a name="getLanguage()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getLanguage"><b>getLanguage</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> getLanguage()
</pre>
<dl>
  <dd> Getter for programmatic name of field,
 an lowercased two-letter ISO-639 code.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="#getDisplayLanguage">getDisplayLanguage</a>
  </dl></dd>
</dl>
<a name="getCountry()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getCountry"><b>getCountry</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> getCountry()
</pre>
<dl>
  <dd> Getter for programmatic name of field,
 an uppercased two-letter ISO-3166 code.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="#getDisplayCountry">getDisplayCountry</a>
  </dl></dd>
</dl>
<a name="getVariant()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getVariant"><b>getVariant</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> getVariant()
</pre>
<dl>
  <dd> Getter for programmatic name of field.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="#getDisplayVariant">getDisplayVariant</a>
  </dl></dd>
</dl>
<a name="toString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toString"><b>toString</b></a>
<pre>
 public final <a href="java.lang.String.html#_top_">String</a> toString()
</pre>
<dl>
  <dd> Getter for the programmatic name of the entire locale,
 with the language, country and variant separated by underbars.
 Language is always lower case, and country is always uppcer case.
 If a field is missing, at most one underbar will occur.
 Example: "Een, "de_DE", "en_US_WIN", "de_POSIX", "fr_MAC"
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#toString()">toString</a> in class <a href="java.lang.Object.html#_top_">Object</a>
    <dt> <b>See Also:</b>
    <dd> <a href="#getDisplayName">getDisplayName</a>
  </dl></dd>
</dl>
<a name="getISO3Language()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getISO3Language"><b>getISO3Language</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> getISO3Language() throws <a href="java.util.MissingResourceException.html#_top_">MissingResourceException</a>
</pre>
<dl>
  <dd> Getter for the three-letter ISO language abbreviation
 of the locale.  Returns the empty string if the locale doesn't specify a language.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.util.MissingResourceException.html#_top_">MissingResourceException</a>
    <dd> Throws MissingResourceException if the
 three-letter language abbreviation is not available for this locale.
  </dl></dd>
</dl>
<a name="getISO3Country()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getISO3Country"><b>getISO3Country</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> getISO3Country() throws <a href="java.util.MissingResourceException.html#_top_">MissingResourceException</a>
</pre>
<dl>
  <dd> Getter for the three-letter ISO country abbreviation
 of the locale.  Returns the empty string if the locale doesn't specify a country.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.util.MissingResourceException.html#_top_">MissingResourceException</a>
    <dd> Throws MissingResourceException if the
 three-letter language abbreviation is not available for this locale.
  </dl></dd>
</dl>
<a name="getDisplayLanguage()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDisplayLanguage"><b>getDisplayLanguage</b></a>
<pre>
 public final <a href="java.lang.String.html#_top_">String</a> getDisplayLanguage()
</pre>
<dl>
  <dd> Returns a name for the locale's language that is appropriate for display to the
 user.  This will be the name the locale's language localized for the default locale,
 if that data is available.  For example, if the locale is fr_FR and the default locale
 is en_US, getDisplayLanguage() will return "French"; if the locale is en_US and
 the default locale is fr_FR, getDisplayLanguage() will return "anglais".  If the
 appropriate name isn't available (say, we don't have a Japanese name for Croatian),
 this function falls back on the English name and uses the ISO code as a last-resort
 value.  If the locale doesn't specify a language, this function returns the empty string.
<p>
</dl>
<a name="getDisplayLanguage(java.util.Locale)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDisplayLanguage"><b>getDisplayLanguage</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> getDisplayLanguage(<a href="#_top_">Locale</a> inLocale)
</pre>
<dl>
  <dd> Returns a name for the locale's language that is appropriate for display to the
 user.  This will be the name the locale's language localized for inLocale,
 if that data is available.  For example, if the locale is fr_FR and inLocale
 is en_US, getDisplayLanguage() will return "French"; if the locale is en_US and
 inLocale is fr_FR, getDisplayLanguage() will return "anglais".  If the
 appropriate name isn't available (say, we don't have a Japanese name for Croatian),
 this function falls back on the default locale, on the English name, and finally
 on the ISO code as a last-resort value.  If the locale doesn't specify a language,
 this function returns the empty string.
<p>
</dl>
<a name="getDisplayCountry()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDisplayCountry"><b>getDisplayCountry</b></a>
<pre>
 public final <a href="java.lang.String.html#_top_">String</a> getDisplayCountry()
</pre>
<dl>
  <dd> Returns a name for the locale's country that is appropriate for display to the
 user.  This will be the name the locale's country localized for the default locale,
 if that data is available.  For example, if the locale is fr_FR and the default locale
 is en_US, getDisplayCountry() will return "France"; if the locale is en_US and
 the default locale is fr_FR, getDisplayLanguage() will return "Etats-Unis".  If the
 appropriate name isn't available (say, we don't have a Japanese name for Croatia),
 this function falls back on the English name and uses the ISO code as a last-resort
 value.  If the locale doesn't specify a country, this function returns the empty string.
<p>
</dl>
<a name="getDisplayCountry(java.util.Locale)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDisplayCountry"><b>getDisplayCountry</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> getDisplayCountry(<a href="#_top_">Locale</a> inLocale)
</pre>
<dl>
  <dd> Returns a name for the locale's country that is appropriate for display to the
 user.  This will be the name the locale's country localized for inLocale,
 if that data is available.  For example, if the locale is fr_FR and inLocale
 is en_US, getDisplayCountry() will return "France"; if the locale is en_US and
 inLocale is fr_FR, getDisplayLanguage() will return "Etats-Unis".  If the
 appropriate name isn't available (say, we don't have a Japanese name for Croatia),
 this function falls back on the default locale, on the English name, and finally
 on the ISO code as a last-resort value.  If the locale doesn't specify a country,
 this function returns the empty string.
<p>
</dl>
<a name="getDisplayVariant()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDisplayVariant"><b>getDisplayVariant</b></a>
<pre>
 public final <a href="java.lang.String.html#_top_">String</a> getDisplayVariant()
</pre>
<dl>
  <dd> Returns a name for the locale's variant code that is appropriate for display to the
 user.  If possible, the name will be localized for the default locale.  If the locale
 doesn't specify a variant code, this function returns the empty string.
<p>
</dl>
<a name="getDisplayVariant(java.util.Locale)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDisplayVariant"><b>getDisplayVariant</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> getDisplayVariant(<a href="#_top_">Locale</a> inLocale)
</pre>
<dl>
  <dd> Returns a name for the locale's variant code that is appropriate for display to the
 user.  If possible, the name will be localized for inLocale.  If the locale
 doesn't specify a variant code, this function returns the empty string.
<p>
</dl>
<a name="getDisplayName()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDisplayName"><b>getDisplayName</b></a>
<pre>
 public final <a href="java.lang.String.html#_top_">String</a> getDisplayName()
</pre>
<dl>
  <dd> Returns a name for the locale that is appropriate for display to the
 user.  This will be the values returned by getDisplayLanguage(), getDisplayCountry(),
 and getDisplayVariant() assembled into a single string.  The display name will have
 one of the following forms:<p><blockquote>
 language (country, variant)<p>
 language (country)<p>
 language (variant)<p>
 country (variant)<p>
 language<p>
 country<p>
 variant<p></blockquote>
 depending on which fields are specified in the locale.  If the language, country,
 and variant fields are all empty, this function returns the empty string.
<p>
</dl>
<a name="getDisplayName(java.util.Locale)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDisplayName"><b>getDisplayName</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> getDisplayName(<a href="#_top_">Locale</a> inLocale)
</pre>
<dl>
  <dd> Returns a name for the locale that is appropriate for display to the
 user.  This will be the values returned by getDisplayLanguage(), getDisplayCountry(),
 and getDisplayVariant() assembled into a single string.  The display name will have
 one of the following forms:<p><blockquote>
 language (country, variant)<p>
 language (country)<p>
 language (variant)<p>
 country (variant)<p>
 language<p>
 country<p>
 variant<p></blockquote>
 depending on which fields are specified in the locale.  If the language, country,
 and variant fields are all empty, this function returns the empty string.
<p>
</dl>
<a name="clone()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="clone"><b>clone</b></a>
<pre>
 public <a href="java.lang.Object.html#_top_">Object</a> clone()
</pre>
<dl>
  <dd> Overrides Cloneable
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#clone()">clone</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="hashCode()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="hashCode"><b>hashCode</b></a>
<pre>
 public synchronized int hashCode()
</pre>
<dl>
  <dd> Override hashCode.
 Since Locales are often used in hashtables, caches the value
 for speed.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#hashCode()">hashCode</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="equals(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="equals"><b>equals</b></a>
<pre>
 public boolean equals(<a href="java.lang.Object.html#_top_">Object</a> obj)
</pre>
<dl>
  <dd> Compares two Objects for equality.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#equals(java.lang.Object)">equals</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.util.html">This Package</a>  <a href="java.util.ListResourceBundle.html#_top_">Previous</a>  <a href="java.util.Observable.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
