Java Doc for Timezone.java in  » 6.0-JDK-Modules-sun » tools » sun » tools » javazic » 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 » 6.0 JDK Modules sun » tools » sun.tools.javazic 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   sun.tools.javazic.Timezone

Timezone
class Timezone (Code)
Timezone represents all information of a single point of time to generate its time zone database.
since:
   1.4


Field Summary
final static  intDST
    
final static  intLAST_DST
    
final static  intNO_DST
    
final static  intUNDEF_DST
    
final static  intX_DST
    

Constructor Summary
 Timezone(String name)
     Constracts a Timezone object with the given zone name.

Method Summary
 voidaddTransition(long time, int offset, int dstOffset)
     Adds the specified transition information to the end of the transition table.
 voidaddUsedRec(ZoneRec rec)
     Adds the specified zone record to the zone records list.
 voidaddUsedRec(RuleRec rec)
     Adds the specified rule record to the rule records list.
 voidchecksum()
     Calculates the CRC32 value from the transition table and sets the value to crc32.
 intgetCRC32()
    
 intgetDSTType()
    
 intgetDstOffsetIndex(int offset)
     Stores the specified daylight saving value in the GMT offsets table and returns its index.
 List<Integer>getDstOffsets()
    
 List<Integer>getGmtOffsets()
    
 intgetLastDSTSaving()
    
 List<RuleRec>getLastRules()
    
 ZoneRecgetLastZoneRec()
    
 intgetNTransitions()
    
 StringgetName()
    
 intgetOffsetIndex(int offset)
     Stores the specified offset value from GMT in the GMT offsets table and returns its index.
 List<Integer>getOffsets()
    
 intgetRawOffset()
    
 List<RuleRec>getRules()
     Returns the list of all rule records that have been referred to by this time zone.
 List<Long>getTransitions()
    
 List<ZoneRec>getZones()
     Returns the list of all zone records that have been referred to by this time zone.
 voidoptimize()
     Removes unnecessary transitions for Java time zone support.
 voidsetDSTType(int type)
     Sets the type of historical daylight saving time observation.
 voidsetLastDSTSaving(int offset)
     Sets the last daylight saving amount.
 voidsetLastRules(List<RuleRec> rules)
     Sets the last rule records for this time zone.
 voidsetLastZoneRec(ZoneRec zrec)
     Sets the last zone record for this time zone.
 voidsetRawOffset(int offset)
     Sets time zone's GMT offset to offset.
 voidsetRawOffset(int offset, long startTime)
     Sets time zone's GMT offset value to offset.
 booleanwillGMTOffsetChange()
    

Field Detail
DST
final static int DST(Code)



LAST_DST
final static int LAST_DST(Code)



NO_DST
final static int NO_DST(Code)



UNDEF_DST
final static int UNDEF_DST(Code)



X_DST
final static int X_DST(Code)




Constructor Detail
Timezone
Timezone(String name)(Code)
Constracts a Timezone object with the given zone name.
Parameters:
  name - the zone name




Method Detail
addTransition
void addTransition(long time, int offset, int dstOffset)(Code)
Adds the specified transition information to the end of the transition table.
Parameters:
  time - the UTC time at which this transition happens
Parameters:
  offset - the total amount of the offset from GMT in milliseconds
Parameters:
  dstOffset - the amount of time in milliseconds saved at this transition



addUsedRec
void addUsedRec(ZoneRec rec)(Code)
Adds the specified zone record to the zone records list.
Parameters:
  rec - the zone record



addUsedRec
void addUsedRec(RuleRec rec)(Code)
Adds the specified rule record to the rule records list.
Parameters:
  rec - the rule record



checksum
void checksum()(Code)
Calculates the CRC32 value from the transition table and sets the value to crc32.



getCRC32
int getCRC32()(Code)
the checksum (crc32) value of the trasition table



getDSTType
int getDSTType()(Code)
the type of historical daylight saving timeobservation.



getDstOffsetIndex
int getDstOffsetIndex(int offset)(Code)
Stores the specified daylight saving value in the GMT offsets table and returns its index. If the same value as the specified offset is already in the table, its index is returned. If 0 is specified, it's not stored in the table and -1 is returned.
Parameters:
  offset - the offset value in milliseconds the index to the specified offset value in the GMToffsets table, or -1 if 0 is specified.



getDstOffsets
List<Integer> getDstOffsets()(Code)
the DST saving offsets list



getGmtOffsets
List<Integer> getGmtOffsets()(Code)
the GMT offsets list



getLastDSTSaving
int getLastDSTSaving()(Code)
the last daylight saving amount.



getLastRules
List<RuleRec> getLastRules()(Code)
the last rule records for this time zone.



getLastZoneRec
ZoneRec getLastZoneRec()(Code)
the last zone record for this time zone.



getNTransitions
int getNTransitions()(Code)
the number of transitions



getName
String getName()(Code)
the zone name



getOffsetIndex
int getOffsetIndex(int offset)(Code)
Stores the specified offset value from GMT in the GMT offsets table and returns its index. The offset value includes the base GMT offset and any additional daylight saving if applicable. If the same value as the specified offset is already in the table, its index is returned.
Parameters:
  offset - the offset value in milliseconds the index to the offset value in the GMT offsets table.



getOffsets
List<Integer> getOffsets()(Code)
the offsets list



getRawOffset
int getRawOffset()(Code)
the last known GMT offset value in milliseconds



getRules
List<RuleRec> getRules()(Code)
Returns the list of all rule records that have been referred to by this time zone. the rule records list



getTransitions
List<Long> getTransitions()(Code)
the transition table (list)



getZones
List<ZoneRec> getZones()(Code)
Returns the list of all zone records that have been referred to by this time zone. the zone records list



optimize
void optimize()(Code)
Removes unnecessary transitions for Java time zone support.



setDSTType
void setDSTType(int type)(Code)
Sets the type of historical daylight saving time observation. For example, China used to observed daylight saving time, but it no longer does. Then, X_DST is set to the China time zone.
Parameters:
  type - the type of daylight saving time



setLastDSTSaving
void setLastDSTSaving(int offset)(Code)
Sets the last daylight saving amount.
Parameters:
  the - daylight saving amount



setLastRules
void setLastRules(List<RuleRec> rules)(Code)
Sets the last rule records for this time zone. Those are used for generating SimpleTimeZone parameters.
Parameters:
  rules - the last rule records



setLastZoneRec
void setLastZoneRec(ZoneRec zrec)(Code)
Sets the last zone record for this time zone.
Parameters:
  the - last zone record



setRawOffset
void setRawOffset(int offset)(Code)
Sets time zone's GMT offset to offset.
Parameters:
  offset - the GMT offset value in milliseconds



setRawOffset
void setRawOffset(int offset, long startTime)(Code)
Sets time zone's GMT offset value to offset. If startTime is future time, then the Timezone.willRawOffsetChange value is set to true.
Parameters:
  offset - the GMT offset value in milliseconds
Parameters:
  startTime - the UTC time at which the GMT offset is in effective



willGMTOffsetChange
boolean willGMTOffsetChange()(Code)
true if the GMT offset of this time zone would changeafter the time zone database has been generated, false, otherwise.



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.