| java.lang.Object sun.tools.javazic.Zone
Zone | class Zone (Code) | | Zone holds information corresponding to a "Zone" part of a time
zone definition file.
since: 1.4 |
Constructor Summary | |
| Zone(String name) Constructs a Zone with the specified zone name. |
Method Summary | |
void | add(ZoneRec rec) Adds the specified zone record to the zone record list. | static void | addMET() Forces to add "MET" to the target zone table. | ZoneRec | get(int index) Parameters: index - the index at which the zone record in the list is returned. | String | getName() | static boolean | isTargetZone(String zoneName) Determines whether the specified zone is one of the target zones. | static void | readZoneNames(String fileName) Reads time zone names to be generated, called "target zone
name", from the specified text file and creats an internal hash
table to keep those names. | void | resolve(Zoneinfo zi) Resolves the reference to a rule in each zone record. | int | size() |
Zone | Zone(String name)(Code) | | Constructs a Zone with the specified zone name.
Parameters: name - the zone name |
add | void add(ZoneRec rec)(Code) | | Adds the specified zone record to the zone record list.
|
addMET | static void addMET()(Code) | | Forces to add "MET" to the target zone table. This is because
there is a conflict between Java zone name "WET" and Olson zone
name.
|
get | ZoneRec get(int index)(Code) | | Parameters: index - the index at which the zone record in the list is returned. the zone record specified by the index. |
isTargetZone | static boolean isTargetZone(String zoneName)(Code) | | Determines whether the specified zone is one of the target zones.
If no target zones are specified, this method always returns
true for any zone name.
Parameters: zoneName - the zone name true if the specified name is a target zone. |
readZoneNames | static void readZoneNames(String fileName)(Code) | | Reads time zone names to be generated, called "target zone
name", from the specified text file and creats an internal hash
table to keep those names. It's assumed that one text line
contains a zone name or comments if it starts with
'#'. Comments can't follow a zone name in a single line.
Parameters: fileName - the text file name |
resolve | void resolve(Zoneinfo zi)(Code) | | Resolves the reference to a rule in each zone record.
Parameters: zi - the Zoneinfo object with which the rule reference isresolved. |
size | int size()(Code) | | the size of the zone record list |
|
|