|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.common.pim.model.converter.BaseConverter
com.funambol.common.pim.model.converter.VCalendarConverter
com.funambol.common.pim.model.converter.VCalendarContentConverter
public class VCalendarContentConverter
This object is a converter from CalendarContent (Event or Task) to VCalendar and from VCalendar to CalendarContent.
Converter
Field Summary |
---|
Fields inherited from class com.funambol.common.pim.model.converter.BaseConverter |
---|
charset, CHARSET_UTF7, CHARSET_UTF8, ENCODING_B64, ENCODING_QP, forceClientLocalTime, PLAIN_CHARSET, supportedFields, timezone |
Constructor Summary | |
---|---|
VCalendarContentConverter(java.util.TimeZone timezone,
java.lang.String charset)
Deprecated. forceClientLocalTime argument should also be specified |
|
VCalendarContentConverter(java.util.TimeZone timezone,
java.lang.String charset,
boolean forceClientLocalTime)
|
Method Summary | |
---|---|
VCalendarContent |
cc2vcc(CalendarContent cc)
|
VCalendarContent |
cc2vcc(CalendarContent cc,
boolean xv)
Performs the CalendarContent-to-VCalendarContent conversion. |
long[] |
extractInterval(VCalendarContent vcc)
Extracts roughly a time interval large enough to contain the whole event/task and, in case it's a recurrent one, all its occurrences. |
static RecurrencePattern |
getRecurrencePattern(java.lang.String startDate,
java.lang.String endDate,
java.lang.String rrule,
java.util.TimeZone recurrenceTZ,
boolean xv)
|
void |
isAllDayCheckingDuration(CalendarContent cc)
Checks if the given dates are of an all day event checking if the duration is a multiple of 24 hour. |
CalendarContent |
vcc2cc(VCalendarContent vcc,
boolean xv)
Performs the VCalendarContent-to-CalendarContent conversion. |
protected CalendarContent |
vcc2cc(VCalendarContent vcc,
boolean xv,
java.util.TimeZone dtStartTimeZone,
java.util.TimeZone dtEndTimeZone,
java.util.TimeZone reminderTimeZone)
Performs the VCalendarContent-to-CalendarContent conversion. |
Methods inherited from class com.funambol.common.pim.model.converter.VCalendarConverter |
---|
addCRBeforeEachLF, addXParams, calendar2vcalendar, composeDateTimeField, composeDateTimeField, composeField, convert, decodeDateTimeField, decodeField, decodeShortField, getParameters, getXParams, iCalEscape, isComplexProperty, isQPProperty, vcalendar2calendar, vCalEscape, vCalEscapeButKeepNewlines, vCalUnescape |
Methods inherited from class com.funambol.common.pim.model.converter.BaseConverter |
---|
composeICalTextComponent, composeRemainingFields, composeVCardComponent, composeVCardComponent, encode, escapeSeparator, handleConversionAcrossTimeZones, handleConversionToAllDayDate, handleConversionToAllDayDate, handleConversionToLocalDate, handleConversionToUTCDate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public VCalendarContentConverter(java.util.TimeZone timezone, java.lang.String charset)
timezone
- charset
- public VCalendarContentConverter(java.util.TimeZone timezone, java.lang.String charset, boolean forceClientLocalTime)
timezone
- the timezone to use in the conversioncharset
- the charsetforceClientLocalTime
- true if the date must be converted in the
client local time, false otherwise.Method Detail |
---|
public VCalendarContent cc2vcc(CalendarContent cc) throws ConverterException
ConverterException
public VCalendarContent cc2vcc(CalendarContent cc, boolean xv) throws ConverterException
cc
- the CalendarContent object to be convertedxv
- true if the VCalendarContent must be in text/x-vcalendar format
com.funambol.common.pim.converter.ConverterException
ConverterException
public CalendarContent vcc2cc(VCalendarContent vcc, boolean xv) throws ConverterException
vcc
- the VCalendarContent object to be convertedxv
- true if the text/x-vcalendar format must be used while
generating some properties of the VCalendar output object
com.funambol.common.pim.converter.ConverterException
ConverterException
protected CalendarContent vcc2cc(VCalendarContent vcc, boolean xv, java.util.TimeZone dtStartTimeZone, java.util.TimeZone dtEndTimeZone, java.util.TimeZone reminderTimeZone) throws ConverterException
vcc
- the VCalendarContent object to be convertedxv
- true if the text/x-vcalendar format must be used while
generating some properties of the VCalendar output objectdtStartTimeZone
- dtEndTimeZone
- reminderTimeZone
-
com.funambol.common.pim.converter.ConverterException
ConverterException
public static RecurrencePattern getRecurrencePattern(java.lang.String startDate, java.lang.String endDate, java.lang.String rrule, java.util.TimeZone recurrenceTZ, boolean xv) throws ConverterException
ConverterException
public void isAllDayCheckingDuration(CalendarContent cc) throws java.lang.Exception
cc
-
java.lang.Exception
- if an error occurspublic long[] extractInterval(VCalendarContent vcc)
vcc
- the VCalendarContent object to be quickly parsed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |