public class CalendarTimezoneHelper extends Object
Constructor and Description |
---|
CalendarTimezoneHelper() |
Modifier and Type | Method and Description |
---|---|
protected static SimpleTimeZone |
buildTimeZone(Map<String,String> icalParams)
Internal version that takes the parameters from
getICalParams(String)
and builds a TimeZone from it. |
static SimpleTimeZone |
buildTimeZone(String ical)
Builds a Java TimeZone from the VTIMEZONE info in an
iCal file.
|
protected static Map<String,String> |
getICalParams(String icalText)
Turns an iCal event into event + timezone parameters.
|
protected static String[] |
icalLineKeyValue(String icalLine)
Splits an iCal line into key and value by the first
unquoted colon.
|
public static SimpleTimeZone buildTimeZone(String ical)
protected static SimpleTimeZone buildTimeZone(Map<String,String> icalParams)
getICalParams(String)
and builds a TimeZone from it.
This is not public as it will be refactored when getICalParams(String)
is replaced.
Note - because it uses the icalParams, we can't handle cases where we're
given historic TZ info (eg until 2004 it was that, now it's this)protected static String[] icalLineKeyValue(String icalLine)
icalLine
- Stringprotected static Map<String,String> getICalParams(String icalText)
icalText
- iCal text for the event, and the TZ (prefixed)Copyright © 2005–2017 Alfresco Software. All rights reserved.