Package services.gui
Class StudyDeserializer
- java.lang.Object
-
- services.gui.StudyDeserializer
-
public class StudyDeserializer extends java.lang.ObjectDeserialization of an JSON file to a study. The study's JSON string can be in different versions of the study to support older JATOS' versions.
-
-
Constructor Summary
Constructors Constructor Description StudyDeserializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Studydeserialize(java.nio.file.Path file)Accepts a file with the content of a JSON String and turns the data object within this JSON String into an object of type Study.
-
-
-
Method Detail
-
deserialize
public Study deserialize(java.nio.file.Path file) throws java.io.IOException
Accepts a file with the content of a JSON String and turns the data object within this JSON String into an object of type Study. It can handle different versions of the study model. The version is determined by the version field in the JSON string.- Throws:
java.io.IOException
-
-