| |
|
| java.lang.Object sun.tools.javazic.Zoneinfo
Zoneinfo | class Zoneinfo (Code) | | Zoneinfo provides javazic compiler front-end functionality.
since: 1.4 |
Field Summary | |
static boolean | isYearForTimeZoneDataSpecified True if javazic should generate a list of SimpleTimeZone
instances for the SimpleTimeZone-based time zone support. |
Constructor Summary | |
| Zoneinfo() Constracts a Zoneinfo. |
isYearForTimeZoneDataSpecified | static boolean isYearForTimeZoneDataSpecified(Code) | | True if javazic should generate a list of SimpleTimeZone
instances for the SimpleTimeZone-based time zone support.
|
Zoneinfo | Zoneinfo()(Code) | | Constracts a Zoneinfo.
|
add | void add(Zone zone)(Code) | | Adds the given zone to the list of Zones.
Parameters: zone - Zone to be added to the list. |
add | void add(Rule rule)(Code) | | Adds the given rule to the list of Rules.
Parameters: rule - Rule to be added to the list. |
getEndYear | static int getEndYear()(Code) | | the end year value |
getMaxYear | static int getMaxYear()(Code) | | the maximum year value |
getMinYear | static int getMinYear()(Code) | | the minimum year value |
getRule | Rule getRule(String name)(Code) | | a Rule specified by name. Parameters: name - a rule name |
getStartYear | static int getStartYear()(Code) | | the start year value |
getZone | Zone getZone(String name)(Code) | | a Zone specified by name. Parameters: name - a zone name |
parse | static Zoneinfo parse(String fname)(Code) | | Parses the specified time zone data file and creates a Zoneinfo
that has all Rules, Zones and Links (aliases) information.
Parameters: fname - the time zone data file name a Zoneinfo object |
phase2 | Timezone phase2(String zoneName)(Code) | | Interprets a zone and constructs a Timezone object that
contains enough information on GMT offsets and DST schedules to
generate a zone info database.
Parameters: zoneName - the zone name for which a Timezone object isconstructed. a Timezone object that contains all GMT offsets and DSTrules information. |
putAlias | void putAlias(String name1, String name2)(Code) | | Puts the specifid name pair to the alias table.
Parameters: name1 - an alias time zone name Parameters: name2 - the real time zone of the alias name |
setEndYear | static void setEndYear(int year)(Code) | | Sets the end year.
Parameters: year - the end year value throws: IllegalArgumentException - if the specified year value issmaller than the start year or greater than the maximum year. |
setStartYear | static void setStartYear(int year)(Code) | | Sets the start year.
Parameters: year - the start year value throws: IllegalArgumentException - if the specified year value issmaller than the minimum year or greater than the end year. |
setYear | static void setYear(int year)(Code) | | Sets the given year for SimpleTimeZone list output.
This method is called when the -S option is specified.
Parameters: year - the year for which SimpleTimeZone list should be generated |
|
|
|