Package io.opentimeline.opentimelineio
Class Serialization
java.lang.Object
io.opentimeline.opentimelineio.Serialization
public class Serialization
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Serialization() -
Method Summary
Modifier and Type Method Description booleanserializeJSONToFile(Any value, java.lang.String fileName, ErrorStatus errorStatus)Serialize any OTIO object contained in an Any to a file with a default indent of 4.booleanserializeJSONToFile(Any value, java.lang.String fileName, ErrorStatus errorStatus, int indent)Serialize any OTIO object contained in an Any to a file.java.lang.StringserializeJSONToString(Any value, ErrorStatus errorStatus)Serialize any OTIO object contained in an Any to a String with a default indent of 4.java.lang.StringserializeJSONToString(Any value, ErrorStatus errorStatus, int indent)Serialize any OTIO object contained in an Any to a String.
-
Constructor Details
-
Serialization
public Serialization()
-
-
Method Details
-
serializeJSONToString
Serialize any OTIO object contained in an Any to a String.- Parameters:
value- Any to be serializederrorStatus- errorStatus to report error during serializationindent- number of spaces to use for indentation in JSON- Returns:
- serialized OTIO object
-
serializeJSONToString
Serialize any OTIO object contained in an Any to a String with a default indent of 4.- Parameters:
value- Any to be serializederrorStatus- errorStatus to report error during serialization- Returns:
- serialized OTIO object
-
serializeJSONToFile
public boolean serializeJSONToFile(Any value, java.lang.String fileName, ErrorStatus errorStatus, int indent)Serialize any OTIO object contained in an Any to a file.- Parameters:
value- Any to be serializedfileName- path to fileerrorStatus- errorStatus to report error during serializationindent- number of spaces to use for indentation in JSON- Returns:
- was the object serialized and was the file created successfully?
-
serializeJSONToFile
Serialize any OTIO object contained in an Any to a file with a default indent of 4.- Parameters:
value- Any to be serializedfileName- path to fileerrorStatus- errorStatus to report error during serialization- Returns:
- was the object serialized and was the file created successfully?
-