parse

fun parse(reader: Reader): Calendar

Parses the given iCalendar as lenient as possible and applies some error correction:

  1. The input stream from is preprocessed with ICalPreprocessor.preprocessStream.

  2. The parsed calendar is preprocessed with ICalPreprocessor.preprocessCalendar.

Parameters

reader

where the iCalendar is read from

tzRegistry

time zone registry where VTIMEZONE definitions of the iCalendar will be put

Throws

when the resource is can't be parsed