Top Fields Constructors Methods
net.fortuna.ical4j.transform.compliance

public Class TzHelper

extends Object
Class Inheritance
Imports
net.fortuna.ical4j.model.Parameter, .Property, .TimeZoneRegistry, .TimeZoneRegistryFactory, net.fortuna.ical4j.model.parameter.TzId, net.fortuna.ical4j.model.property.DateProperty, org.slf4j.Logger, .LoggerFactory, java.util.HashMap, .Map, .Optional, .Scanner

Authors
corneliu dobrota, daniel grigore

Field Summary

Modifier and TypeField and Description
private static final Logger
private static final Map<String, String>
private static final Map<String, String>
private static final String
private static final TimeZoneRegistry

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
correctTzParameter(Property property, String newTimezoneId)

pack-priv static void
pack-priv static void
pack-priv static void
correctTzValueOf(TzId tzProperty)

private static String
public static String

Returns:

a valid timezoneId for the specified timezoneValue or null in case the specified time zone value does not match anything known
getCorrectedTimeZoneIdFrom
(String
time zone value read from ICS file. The value can be a Microsoft time zone id or an invalid time zone value
value
)

Gets a valid timezoneId for the specified timezoneValue or null in case the specified time zone value does not match anything known.

private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGback to summary
private static final Logger LOG
MS_TIMEZONE_IDSback to summary
private static final Map<String, String> MS_TIMEZONE_IDS
MS_TIMEZONE_NAMESback to summary
private static final Map<String, String> MS_TIMEZONE_NAMES
MS_TIMEZONES_FILEback to summary
private static final String MS_TIMEZONES_FILE
TIMEZONE_REGISTRYback to summary
private static final TimeZoneRegistry TIMEZONE_REGISTRY

Constructor Detail

TzHelperback to summary
public TzHelper()

Method Detail

correctTzParameterback to summary
private static void correctTzParameter(Property property, String newTimezoneId)
correctTzParameterFromback to summary
pack-priv static void correctTzParameterFrom(Property property)
correctTzParameterFromback to summary
pack-priv static void correctTzParameterFrom(DateProperty<T extends Temporal> property)
correctTzValueOfback to summary
pack-priv static void correctTzValueOf(TzId tzProperty)
getCorrectedTimezoneFromTzParameterback to summary
private static String getCorrectedTimezoneFromTzParameter(Property property)
getCorrectedTimeZoneIdFromback to summary
public static String getCorrectedTimeZoneIdFrom(String value)

Gets a valid timezoneId for the specified timezoneValue or null in case the specified time zone value does not match anything known.

Parameters
value:String

time zone value read from ICS file. The value can be a Microsoft time zone id or an invalid time zone value

Returns:String

a valid timezoneId for the specified timezoneValue or null in case the specified time zone value does not match anything known

initMsTimezonesback to summary
private static void initMsTimezones()