public final class ZoneInfoFile
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,java.lang.String> |
getAliasMap()
Returns a Map from alias time zone IDs to their standard
time zone IDs.
|
static ZoneInfo |
getCustomTimeZone(java.lang.String originalId,
int gmtOffset)
Gets a ZoneInfo with the given GMT offset.
|
static java.lang.String |
getVersion()
Gets the version of this tz data.
|
static java.lang.String[] |
getZoneIds()
Gets all available IDs supported in the Java run-time.
|
static java.lang.String[] |
getZoneIds(int rawOffset)
Gets all available IDs that have the same value as the
specified raw GMT offset.
|
static ZoneInfo |
getZoneInfo(java.io.DataInput in,
java.lang.String zoneId) |
static ZoneInfo |
getZoneInfo(java.lang.String zoneId) |
static int |
readOffset(java.io.DataInput in) |
static java.lang.String |
toCustomID(int gmtOffset) |
static boolean |
useOldMapping() |
public static java.lang.String[] getZoneIds()
public static java.lang.String[] getZoneIds(int rawOffset)
rawOffset - the GMT offset in milliseconds. This
value should not include any daylight saving time.public static ZoneInfo getZoneInfo(java.lang.String zoneId)
public static java.util.Map<java.lang.String,java.lang.String> getAliasMap()
public static java.lang.String getVersion()
public static ZoneInfo getCustomTimeZone(java.lang.String originalId, int gmtOffset)
originalId - the given custom id (before normalized such as "GMT+9")gmtOffset - GMT offset in millisecondspublic static java.lang.String toCustomID(int gmtOffset)
public static boolean useOldMapping()
public static ZoneInfo getZoneInfo(java.io.DataInput in, java.lang.String zoneId) throws java.lang.Exception
java.lang.Exceptionpublic static int readOffset(java.io.DataInput in)
throws java.io.IOException
java.io.IOException