Build 1.0_r1(from source)

android.pim
Class ICalendar

java.lang.Object
  extended by android.pim.ICalendar

public class ICalendar
extends Object

Parses RFC 2445 iCalendar objects.


Nested Class Summary
static class ICalendar.Component
          A component within an iCalendar (VEVENT, VTODO, VJOURNAL, VFEEBUSY, VTIMEZONE, VALARM).
static class ICalendar.FormatException
          Exception thrown when an iCalendar object has invalid syntax.
static class ICalendar.Parameter
          A parameter defined for an iCalendar property.
static class ICalendar.Property
          A property within an iCalendar component (e.g., DTSTART, DTEND, etc., within a VEVENT).
 
Method Summary
static ICalendar.Component parseCalendar(String text)
          Parses the provided text into an iCalendar object.
static ICalendar.Component parseComponent(ICalendar.Component component, String text)
          Parses the provided text, adding to the provided component.
static ICalendar.Component parseComponent(String text)
          Parses the provided text into an iCalendar component.
static ICalendar.Component parseEvent(String text)
          Parses the provided text into an iCalendar event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseCalendar

public static ICalendar.Component parseCalendar(String text)
                                         throws ICalendar.FormatException
Parses the provided text into an iCalendar object. The top-level component must be of type VCALENDAR.

Parameters:
text - The text to be parsed.
Returns:
The top-level VCALENDAR component.
Throws:
ICalendar.FormatException - Thrown if the text could not be parsed into an iCalendar VCALENDAR object.

parseEvent

public static ICalendar.Component parseEvent(String text)
                                      throws ICalendar.FormatException
Parses the provided text into an iCalendar event. The top-level component must be of type VEVENT.

Parameters:
text - The text to be parsed.
Returns:
The top-level VEVENT component.
Throws:
ICalendar.FormatException - Thrown if the text could not be parsed into an iCalendar VEVENT.

parseComponent

public static ICalendar.Component parseComponent(String text)
                                          throws ICalendar.FormatException
Parses the provided text into an iCalendar component.

Parameters:
text - The text to be parsed.
Returns:
The top-level component.
Throws:
ICalendar.FormatException - Thrown if the text could not be parsed into an iCalendar component.

parseComponent

public static ICalendar.Component parseComponent(ICalendar.Component component,
                                                 String text)
                                          throws ICalendar.FormatException
Parses the provided text, adding to the provided component.

Parameters:
component - The component to which the parsed iCalendar data should be added.
text - The text to be parsed.
Returns:
The top-level component.
Throws:
ICalendar.FormatException - Thrown if the text could not be parsed as an iCalendar object.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature