effectsFromFile

open fun effectsFromFile(effectFile: File): List<Effect>(source)

Get a list of effects from the specified file. Try to deserialize a JSON file at first. If this operation is not successful (for the sake of backward compatibility) try to deserialize a binary file.

Return

List of the effects collected from the file

Parameters

effectFile

Source file

Throws

Exception in handling the file

In case the serialized binary object is not an effect