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
    boolean serializeJSONToFile​(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.
    boolean serializeJSONToFile​(Any value, java.lang.String fileName, ErrorStatus errorStatus, int indent)
    Serialize any OTIO object contained in an Any to a file.
    java.lang.String serializeJSONToString​(Any value, ErrorStatus errorStatus)
    Serialize any OTIO object contained in an Any to a String with a default indent of 4.
    java.lang.String serializeJSONToString​(Any value, ErrorStatus errorStatus, int indent)
    Serialize any OTIO object contained in an Any to a String.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • serializeJSONToString

      public java.lang.String serializeJSONToString​(Any value, ErrorStatus errorStatus, int indent)
      Serialize any OTIO object contained in an Any to a String.
      Parameters:
      value - Any to be serialized
      errorStatus - errorStatus to report error during serialization
      indent - number of spaces to use for indentation in JSON
      Returns:
      serialized OTIO object
    • serializeJSONToString

      public java.lang.String serializeJSONToString​(Any value, ErrorStatus errorStatus)
      Serialize any OTIO object contained in an Any to a String with a default indent of 4.
      Parameters:
      value - Any to be serialized
      errorStatus - 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 serialized
      fileName - path to file
      errorStatus - errorStatus to report error during serialization
      indent - number of spaces to use for indentation in JSON
      Returns:
      was the object serialized and was the file created successfully?
    • serializeJSONToFile

      public boolean serializeJSONToFile​(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.
      Parameters:
      value - Any to be serialized
      fileName - path to file
      errorStatus - errorStatus to report error during serialization
      Returns:
      was the object serialized and was the file created successfully?