fromReader

fun fromReader(reader: Reader, properties: MutableMap<String, String>? = null): Calendar

Parses an iCalendar resource and applies ICalPreprocessor to increase compatibility.

Return

parsed iCalendar resource

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

Throws

ParserException

when the iCalendar can't be parsed

when the iCalendar resource contains an invalid value