SerializationService

@DoNotImplement
interface SerializationService

Allows flows to serialize and deserialize objects to/from byte arrays.

Objects are serialized and deserialized using AMQP serialization.

Corda provides an instance of SerializationService to flows via property injection.

Functions

Link copied to clipboard
@NotNull
abstract fun <T> deserialize(@NotNull bytes: Array<Byte>, @NotNull clazz: Class<T>): T
@NotNull
abstract fun <T> deserialize(@NotNull serializedBytes: SerializedBytes<T>, @NotNull clazz: Class<T>): T
Deserializes the input serialized bytes into an object of type .
Link copied to clipboard
@NotNull
abstract fun <T> serialize(@NotNull obj: T): SerializedBytes<T>
Serializes the input obj.