Java Doc for Locale.java in  » Apache-Harmony-Java-SE » java-package » java » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » java package » java.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.Locale

Locale
final public class Locale implements Cloneable,Serializable(Code)
Locale represents a language/country/variant combination. It is an identifier which dictates particular conventions for the presentation of information. The language codes are two letter lowercase codes as defined by ISO-639. The country codes are three letter uppercase codes as defined by ISO-3166. The variant codes are unspecified.
See Also:   ResourceBundle


Field Summary
final public static  LocaleCANADA
     Locale constant for en_CA.
final public static  LocaleCANADA_FRENCH
     Locale constant for fr_CA.
final public static  LocaleCHINA
     Locale constant for zh_CN.
final public static  LocaleCHINESE
     Locale constant for zh.
final public static  LocaleENGLISH
     Locale constant for en.
final public static  LocaleFRANCE
     Locale constant for fr_FR.
final public static  LocaleFRENCH
     Locale constant for fr.
final public static  LocaleGERMAN
     Locale constant for de.
final public static  LocaleGERMANY
     Locale constant for de_DE.
final public static  LocaleITALIAN
     Locale constant for it.
final public static  LocaleITALY
     Locale constant for it_IT.
final public static  LocaleJAPAN
     Locale constant for ja_JP.
final public static  LocaleJAPANESE
     Locale constant for ja.
final public static  LocaleKOREA
     Locale constant for ko_KR.
final public static  LocaleKOREAN
     Locale constant for ko.
final public static  LocalePRC
     Locale constant for zh_CN.
final public static  LocaleSIMPLIFIED_CHINESE
     Locale constant for zh_CN.
final public static  LocaleTAIWAN
     Locale constant for zh_TW.
final public static  LocaleTRADITIONAL_CHINESE
     Locale constant for zh_TW.
final public static  LocaleUK
     Locale constant for en_GB.
final public static  LocaleUS
     Locale constant for en_US.

Constructor Summary
public  Locale(String language)
     Constructs a new Locale using the specified language.
public  Locale(String language, String country)
     Constructs a new Locale using the specified language and country codes.
public  Locale(String language, String country, String variant)
     Constructs a new Locale using the specified language, country, and variant codes.

Method Summary
public  Objectclone()
     Answers a new Locale with the same language, country and variant codes as this Locale.
public  booleanequals(Object object)
     Compares the specified object to this Locale and answer if they are equal.
static  Locale[]find(String prefix)
    
public static  Locale[]getAvailableLocales()
     Gets the list of installed Locales.
public  StringgetCountry()
     Gets the country code for this Locale.
public static  LocalegetDefault()
     Gets the default Locale.
final public  StringgetDisplayCountry()
     Gets the full country name in the default Locale for the country code of this Locale.
public  StringgetDisplayCountry(Locale locale)
     Gets the full country name in the specified Locale for the country code of this Locale.
final public  StringgetDisplayLanguage()
     Gets the full language name in the default Locale for the language code of this Locale.
public  StringgetDisplayLanguage(Locale locale)
     Gets the full language name in the specified Locale for the language code of this Locale.
final public  StringgetDisplayName()
     Gets the full language, country, and variant names in the default Locale for the codes of this Locale.
public  StringgetDisplayName(Locale locale)
     Gets the full language, country, and variant names in the specified Locale for the codes of this Locale.
final public  StringgetDisplayVariant()
     Gets the full variant name in the default Locale for the variant code of this Locale.
public  StringgetDisplayVariant(Locale locale)
     Gets the full variant name in the specified Locale for the variant code of this Locale.
public  StringgetISO3Country()
     Gets the three letter ISO country code which corresponds to the country code for this Locale.
public  StringgetISO3Language()
     Gets the three letter ISO language code which corresponds to the language code for this Locale.
public static  String[]getISOCountries()
     Gets the list of two letter ISO country codes which can be used as the country code for a Locale.
public static  String[]getISOLanguages()
     Gets the list of two letter ISO language codes which can be used as the language code for a Locale.
public  StringgetLanguage()
     Gets the language code for this Locale.
public  StringgetVariant()
     Gets the variant code for this Locale.
public synchronized  inthashCode()
     Answers an integer hash code for the receiver.
public static synchronized  voidsetDefault(Locale locale)
     Sets the default Locale to the specified Locale.
final public  StringtoString()
     Answers the string representation of this Locale.

Field Detail
CANADA
final public static Locale CANADA(Code)
Locale constant for en_CA.



CANADA_FRENCH
final public static Locale CANADA_FRENCH(Code)
Locale constant for fr_CA.



CHINA
final public static Locale CHINA(Code)
Locale constant for zh_CN.



CHINESE
final public static Locale CHINESE(Code)
Locale constant for zh.



ENGLISH
final public static Locale ENGLISH(Code)
Locale constant for en.



FRANCE
final public static Locale FRANCE(Code)
Locale constant for fr_FR.



FRENCH
final public static Locale FRENCH(Code)
Locale constant for fr.



GERMAN
final public static Locale GERMAN(Code)
Locale constant for de.



GERMANY
final public static Locale GERMANY(Code)
Locale constant for de_DE.



ITALIAN
final public static Locale ITALIAN(Code)
Locale constant for it.



ITALY
final public static Locale ITALY(Code)
Locale constant for it_IT.



JAPAN
final public static Locale JAPAN(Code)
Locale constant for ja_JP.



JAPANESE
final public static Locale JAPANESE(Code)
Locale constant for ja.



KOREA
final public static Locale KOREA(Code)
Locale constant for ko_KR.



KOREAN
final public static Locale KOREAN(Code)
Locale constant for ko.



PRC
final public static Locale PRC(Code)
Locale constant for zh_CN.



SIMPLIFIED_CHINESE
final public static Locale SIMPLIFIED_CHINESE(Code)
Locale constant for zh_CN.



TAIWAN
final public static Locale TAIWAN(Code)
Locale constant for zh_TW.



TRADITIONAL_CHINESE
final public static Locale TRADITIONAL_CHINESE(Code)
Locale constant for zh_TW.



UK
final public static Locale UK(Code)
Locale constant for en_GB.



US
final public static Locale US(Code)
Locale constant for en_US.




Constructor Detail
Locale
public Locale(String language)(Code)
Constructs a new Locale using the specified language.
Parameters:
  language -



Locale
public Locale(String language, String country)(Code)
Constructs a new Locale using the specified language and country codes.
Parameters:
  language -
Parameters:
  country -



Locale
public Locale(String language, String country, String variant)(Code)
Constructs a new Locale using the specified language, country, and variant codes.
Parameters:
  language -
Parameters:
  country -
Parameters:
  variant -
throws:
  NullPointerException - if language, country orvariant is null.




Method Detail
clone
public Object clone()(Code)
Answers a new Locale with the same language, country and variant codes as this Locale. a shallow copy of this Locale
See Also:   java.lang.Cloneable



equals
public boolean equals(Object object)(Code)
Compares the specified object to this Locale and answer if they are equal. The object must be an instance of Locale and have the same language, country and variant.
Parameters:
  object - the object to compare with this object true if the specified object is equal to this Locale, falseotherwise
See Also:   Locale.hashCode



find
static Locale[] find(String prefix)(Code)



getAvailableLocales
public static Locale[] getAvailableLocales()(Code)
Gets the list of installed Locales. an array of Locale



getCountry
public String getCountry()(Code)
Gets the country code for this Locale. a country code



getDefault
public static Locale getDefault()(Code)
Gets the default Locale. the default Locale



getDisplayCountry
final public String getDisplayCountry()(Code)
Gets the full country name in the default Locale for the country code of this Locale. If there is no matching country name, the country code is returned. a country name



getDisplayCountry
public String getDisplayCountry(Locale locale)(Code)
Gets the full country name in the specified Locale for the country code of this Locale. If there is no matching country name, the country code is returned.
Parameters:
  locale - the Locale a country name



getDisplayLanguage
final public String getDisplayLanguage()(Code)
Gets the full language name in the default Locale for the language code of this Locale. If there is no matching language name, the language code is returned. a language name



getDisplayLanguage
public String getDisplayLanguage(Locale locale)(Code)
Gets the full language name in the specified Locale for the language code of this Locale. If there is no matching language name, the language code is returned.
Parameters:
  locale - the Locale a language name



getDisplayName
final public String getDisplayName()(Code)
Gets the full language, country, and variant names in the default Locale for the codes of this Locale. a Locale name



getDisplayName
public String getDisplayName(Locale locale)(Code)
Gets the full language, country, and variant names in the specified Locale for the codes of this Locale.
Parameters:
  locale - the Locale a Locale name



getDisplayVariant
final public String getDisplayVariant()(Code)
Gets the full variant name in the default Locale for the variant code of this Locale. If there is no matching variant name, the variant code is returned. a variant name



getDisplayVariant
public String getDisplayVariant(Locale locale)(Code)
Gets the full variant name in the specified Locale for the variant code of this Locale. If there is no matching variant name, the variant code is returned.
Parameters:
  locale - the Locale a variant name



getISO3Country
public String getISO3Country() throws MissingResourceException(Code)
Gets the three letter ISO country code which corresponds to the country code for this Locale. a three letter ISO language code
exception:
  MissingResourceException - when there is no matching three letter ISO country code



getISO3Language
public String getISO3Language() throws MissingResourceException(Code)
Gets the three letter ISO language code which corresponds to the language code for this Locale. a three letter ISO language code
exception:
  MissingResourceException - when there is no matching three letter ISO language code



getISOCountries
public static String[] getISOCountries()(Code)
Gets the list of two letter ISO country codes which can be used as the country code for a Locale. an array of String



getISOLanguages
public static String[] getISOLanguages()(Code)
Gets the list of two letter ISO language codes which can be used as the language code for a Locale. an array of String



getLanguage
public String getLanguage()(Code)
Gets the language code for this Locale. a language code



getVariant
public String getVariant()(Code)
Gets the variant code for this Locale. a variant code



hashCode
public synchronized int hashCode()(Code)
Answers an integer hash code for the receiver. Objects which are equal answer the same value for this method. the receiver's hash
See Also:   Locale.equals



setDefault
public static synchronized void setDefault(Locale locale)(Code)
Sets the default Locale to the specified Locale.
Parameters:
  locale - the new default Locale
exception:
  SecurityException - when there is a security manager which does not allow thisoperation



toString
final public String toString()(Code)
Answers the string representation of this Locale. the string representation of this Locale



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.