Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.util.Locale

Availability: JDK 1.1

public final class Locale extends Object implements Cloneable, Serializable {
   // Public Constructors
      public Locale(String language, String country, String variant);
      public Locale(String language, String country);
   // Constants
      public static final Locale CANADA;
      public static final Locale CANADA_FRENCH;
      public static final Locale CHINA;
      public static final Locale CHINESE;
      public static final Locale ENGLISH;
      public static final Locale FRANCE;
      public static final Locale FRENCH;
      public static final Locale GERMAN;
      public static final Locale GERMANY;
      public static final Locale ITALIAN;
      public static final Locale ITALY;
      public static final Locale JAPAN;
      public static final Locale JAPANESE;
      public static final Locale KOREA;
      public static final Locale KOREAN;
      public static final Locale PRC;
      public static final Locale SIMPLIFIED_CHINESE;
      public static final Locale TAIWAN;
      public static final Locale TRADITIONAL_CHINESE;
      public static final Locale UK;
      public static final Locale US;
   // Class Methods
      public static synchronized Locale getDefault();
      public static synchronized void setDefault(Locale newLocale);
   // Public Instance Methods
      public Object clone();  // Overrides Object.clone()
      public boolean equals(Object obj);  // Overrides Object.equals()
      public String getCountry();
      public final String getDisplayCountry();
      public String getDisplayCountry(Locale inLocale);
      public final String getDisplayLanguage();
      public String getDisplayLanguage(Locale inLocale);
      public final String getDisplayName();
      public String getDisplayName(Locale inLocale);
      public final String getDisplayVariant();
      public String getDisplayVariant(Locale inLocale);
      public String getISO3Country() throws MissingResourceException;
      public String getISO3Language() throws MissingResourceException;
      public String getLanguage();
      public String getVariant();
      public synchronized int hashCode();  // Overrides Object.hashCode()
      public final String toString();  // Overrides Object.toString()
}

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.