Java Doc for ZoneMeta.java in  » Internationalization-Localization » icu4j » com » ibm » icu » impl » 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 » Internationalization Localization » icu4j » com.ibm.icu.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibm.icu.impl.ZoneMeta

ZoneMeta
final public class ZoneMeta (Code)
This class, not to be instantiated, implements the meta-data missing from the underlying core JDK implementation of time zones. There are two missing features: Obtaining a list of available zones for a given country (as defined by the Olson database), and obtaining a list of equivalent zones for a given zone (as defined by Olson links). This class uses a data class, ZoneMetaData, which is created by the tool tz2icu.
author:
   Alan Liu
since:
   ICU 2.8


Field Summary
final public static  StringHOURGMTREGION_FORMATFALLBACK_FORMATZONE_STRINGSFORWARD_SLASH
    
static  intOLSON_ZONE_COUNT
    
static  intOLSON_ZONE_START
     The Olson data is stored the "zoneinfo" resource bundle. Sub-resources are organized into three ranges of data: Zones, final rules, and country tables.


Method Summary
public static synchronized  intcountEquivalentIDs(String id)
     Returns the number of IDs in the equivalency group that includes the given ID.
public static  StringdisplayFallback(String tzid, String city, ULocale locale)
     Handle fallbacks for generic time (rules E..
public static  StringdisplayGMT(long value, ULocale locale)
    
public static  StringdisplayRegion(String cityOrCountry, ULocale locale)
    
public static synchronized  String[]getAvailableIDs(String country)
     Returns a String array containing all system TimeZone IDs associated with the given country.
public static synchronized  String[]getAvailableIDs()
    
public static synchronized  String[]getAvailableIDs(int offset)
    
public static  StringgetCanonicalCountry(String tzid)
     Return the canonical country code for this tzid.
public static  StringgetCanonicalID(String tzid)
     Return the canonical id for this tzid, which might be the id itself.
public static  TimeZonegetCustomTimeZone(String id)
     Parse a custom time zone identifier and return a corresponding zone.
Parameters:
  id - a string of the form GMT[+-]hh:mm, GMT[+-]hhmm, orGMT[+-]hh.
public static synchronized  StringgetEquivalentID(String id, int index)
     Returns an ID in the equivalency group that includes the given ID.
public static  TimeZonegetGMT()
    
public static  StringgetSingleCountry(String tzid)
     Return the country code if this is a 'single' time zone that can fallback to just the country, otherwise return null.
public static  TimeZonegetSystemTimeZone(String id)
     Lookup the given name in our system zone table.
public static  StringgetTZLocalizationInfo(ULocale locale, String format)
     Get the index'd tz datum for this locale.
public static  ICUResourceBundleopenOlsonResource(String id)
     Given an ID, open the appropriate resource for the given time zone.

Field Detail
HOURGMTREGION_FORMATFALLBACK_FORMATZONE_STRINGSFORWARD_SLASH
final public static String HOURGMTREGION_FORMATFALLBACK_FORMATZONE_STRINGSFORWARD_SLASH(Code)



OLSON_ZONE_COUNT
static int OLSON_ZONE_COUNT(Code)



OLSON_ZONE_START
static int OLSON_ZONE_START(Code)
The Olson data is stored the "zoneinfo" resource bundle. Sub-resources are organized into three ranges of data: Zones, final rules, and country tables. There is also a meta-data resource which has 3 integers: The number of zones, rules, and countries, respectively. The country count includes the non-country 'Default'.





Method Detail
countEquivalentIDs
public static synchronized int countEquivalentIDs(String id)(Code)
Returns the number of IDs in the equivalency group that includes the given ID. An equivalency group contains zones that behave identically to the given zone.

If there are no equivalent zones, then this method returns 0. This means either the given ID is not a valid zone, or it is and there are no other equivalent zones.
Parameters:
  id - a system time zone ID the number of zones in the equivalency group containing'id', or zero if there are no equivalent zones.
See Also:   ZoneMeta.getEquivalentID




displayFallback
public static String displayFallback(String tzid, String city, ULocale locale)(Code)
Handle fallbacks for generic time (rules E.. G)



displayGMT
public static String displayGMT(long value, ULocale locale)(Code)



displayRegion
public static String displayRegion(String cityOrCountry, ULocale locale)(Code)



getAvailableIDs
public static synchronized String[] getAvailableIDs(String country)(Code)
Returns a String array containing all system TimeZone IDs associated with the given country. These IDs may be passed to TimeZone.getTimeZone() to construct the corresponding TimeZone object.
Parameters:
  country - a two-letter ISO 3166 country code, or nullto return zones not associated with any country an array of IDs for system TimeZones in the givencountry. If there are none, return a zero-length array.



getAvailableIDs
public static synchronized String[] getAvailableIDs()(Code)



getAvailableIDs
public static synchronized String[] getAvailableIDs(int offset)(Code)



getCanonicalCountry
public static String getCanonicalCountry(String tzid)(Code)
Return the canonical country code for this tzid. If we have none, or if the time zone is not associated with a country, return null.



getCanonicalID
public static String getCanonicalID(String tzid)(Code)
Return the canonical id for this tzid, which might be the id itself. If there is no canonical id for it, return the passed-in id.



getCustomTimeZone
public static TimeZone getCustomTimeZone(String id)(Code)
Parse a custom time zone identifier and return a corresponding zone.
Parameters:
  id - a string of the form GMT[+-]hh:mm, GMT[+-]hhmm, orGMT[+-]hh. a newly created SimpleTimeZone with the given offset andno Daylight Savings Time, or null if the id cannot be parsed.



getEquivalentID
public static synchronized String getEquivalentID(String id, int index)(Code)
Returns an ID in the equivalency group that includes the given ID. An equivalency group contains zones that behave identically to the given zone.

The given index must be in the range 0..n-1, where n is the value returned by countEquivalentIDs(id). For some value of 'index', the returned value will be equal to the given id. If the given id is not a valid system time zone, or if 'index' is out of range, then returns an empty string.
Parameters:
  id - a system time zone ID
Parameters:
  index - a value from 0 to n-1, where n is the valuereturned by countEquivalentIDs(id) the ID of the index-th zone in the equivalency groupcontaining 'id', or an empty string if 'id' is not a validsystem ID or 'index' is out of range
See Also:   ZoneMeta.countEquivalentIDs




getGMT
public static TimeZone getGMT()(Code)



getSingleCountry
public static String getSingleCountry(String tzid)(Code)
Return the country code if this is a 'single' time zone that can fallback to just the country, otherwise return null. (Note, one must also check the locale data to see that there is a localization for the country in order to implement tr#35 appendix J step 5.)



getSystemTimeZone
public static TimeZone getSystemTimeZone(String id)(Code)
Lookup the given name in our system zone table. If found, instantiate a new zone of that name and return it. If not found, return 0.



getTZLocalizationInfo
public static String getTZLocalizationInfo(ULocale locale, String format)(Code)
Get the index'd tz datum for this locale. Index must be one of the values PREFIX, HOUR, GMT, REGION_FORMAT, FALLBACK_FORMAT



openOlsonResource
public static ICUResourceBundle openOlsonResource(String id)(Code)
Given an ID, open the appropriate resource for the given time zone. Dereference aliases if necessary.
Parameters:
  id - zone id
Parameters:
  res - resource, which must be ready for use (initialized but not open) top-level resource bundle



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) 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.