events From Reader
fun eventsFromReader(reader: Reader, properties: MutableMap<String, String>? = null, ignoreInvalidEvents: Boolean = false): List<Event>
Parses an iCalendar resource, applies ICalPreprocessor to increase compatibility and extracts the VEVENTs.
Return
array of filled Event data objects (may have size 0)
Parameters
reader
where the iCalendar is taken from
properties
Known iCalendar properties (like CALENDAR_NAME) will be put into this map. Key: property name; value: property value
ignore Invalid Events
If true, events that can't be parsed will be dropped. Otherwise, parsing will fail if an invalid event is encountered.
Throws
Parser Exception
when the iCalendar can't be parsed
when the iCalendar resource contains an invalid value
on I/O errors
on parsing exceptions