public class CalendarTimezoneHelper
extends java.lang.Object
Constructor and Description |
---|
CalendarTimezoneHelper() |
Modifier and Type | Method and Description |
---|---|
protected static java.util.SimpleTimeZone |
buildTimeZone(java.util.Map icalParams)
Internal version that takes the parameters from
CalendarTimezoneHelper.getICalParams(String)
and builds a TimeZone from it. |
static java.util.SimpleTimeZone |
buildTimeZone(java.lang.String ical)
Builds a Java TimeZone from the VTIMEZONE info in an
iCal file.
|
protected static java.util.Map |
getICalParams(java.lang.String icalText)
Turns an iCal event into event + timezone parameters.
|
protected static java.lang.String[] |
icalLineKeyValue(java.lang.String icalLine)
Splits an iCal line into key and value by the first
unquoted colon.
|
public static java.util.SimpleTimeZone buildTimeZone(java.lang.String ical)
protected static java.util.SimpleTimeZone buildTimeZone(java.util.Map icalParams)
CalendarTimezoneHelper.getICalParams(String)
and builds a TimeZone from it.
This is not public as it will be refactored when CalendarTimezoneHelper.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 java.lang.String[] icalLineKeyValue(java.lang.String icalLine)
icalLine
- protected static java.util.Map getICalParams(java.lang.String icalText)
params
- iCal params for the event, and the TZ (prefixed)Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.