parse

fun parse(@WillNotClose 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

Throws

when the resource is can't be parsed