public class ICalendar extends Object
Modifier and Type | Class and Description |
---|---|
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).
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static ICalendar.Component parseCalendar(String text) throws ICalendar.FormatException
text
- The text to be parsed.ICalendar.FormatException
- Thrown if the text could not be parsed into an
iCalendar VCALENDAR object.public static ICalendar.Component parseEvent(String text) throws ICalendar.FormatException
text
- The text to be parsed.ICalendar.FormatException
- Thrown if the text could not be parsed into an
iCalendar VEVENT.public static ICalendar.Component parseComponent(String text) throws ICalendar.FormatException
text
- The text to be parsed.ICalendar.FormatException
- Thrown if the text could not be parsed into an
iCalendar component.public static ICalendar.Component parseComponent(ICalendar.Component component, String text) throws ICalendar.FormatException
component
- The component to which the parsed iCalendar data should
be added.text
- The text to be parsed.ICalendar.FormatException
- Thrown if the text could not be parsed as an
iCalendar object.