fromConfigurationData

Creates a course instance from the course configuration data in the given reader.

Return

A course instance containing the information parsed from the configuration data.

Parameters

reader

A reader providing a character stream with the course configuration data.

Throws

MalformedCourseConfigurationException

If the configuration data is malformed in any way


fun fromConfigurationData(reader: Reader, sourcePath: String, factory: ModelFactory): Course

Creates a course instance from the course configuration data in the given reader.

Return

A course instance containing the information parsed from the configuration data.

Parameters

reader

A reader providing a character stream with the course configuration data.

sourcePath

The path to the source of the reader, which is stored in exceptions thrown from this method.

Throws

MalformedCourseConfigurationException

If the configuration data is malformed in any way