readEvents

fun readEvents(from: Reader, properties: MutableMap<String, String>? = null): List<Event>

Parses an iCalendar resource, applies at.bitfire.synctools.icalendar.validation.ICalPreprocessor and EventValidator to increase compatibility and extracts the VEVENTs.

Return

array of filled Event data objects (may have size 0)

Parameters

from

where the iCalendar is read from

properties

Known iCalendar properties (like CALENDAR_NAME) will be put into this map. Key: property name; value: property value

Throws

on I/O errors

ParserException

when the iCalendar can't be parsed