Interface CasperSerializableObject

    • Method Detail

      • serialize

        void serialize​(dev.oak3.sbs4j.SerializerBuffer ser,
                       Target target)
                throws dev.oak3.sbs4j.exception.ValueSerializationException,
                       NoSuchTypeException
        Called when the object's values must be serialized
        Parameters:
        ser - the serializer to be used
        target - target serialization standard
        Throws:
        dev.oak3.sbs4j.exception.ValueSerializationException - exception holding information of failure to serialize a value
        NoSuchTypeException
      • serialize

        default void serialize​(dev.oak3.sbs4j.SerializerBuffer ser)
                        throws dev.oak3.sbs4j.exception.ValueSerializationException
        Called when the object's values must be serialized

        Allows to use the default serialize with the custom casper serialize signature, defaulting encodeType to false

        Specified by:
        serialize in interface dev.oak3.sbs4j.interfaces.SerializableObject
        Parameters:
        ser - the serializer to be used
        Throws:
        dev.oak3.sbs4j.exception.ValueSerializationException - exception holding information of failure to serialize a value