deserializeWithCompatibleContext

Deserialize the bytes in to an object, using the prefixed bytes to determine the format.

Return

deserialized object along with SerializationContext to identify encoding used.

Parameters

byteSequence

The bytes to deserialize, including a format header prefix.

clazz

The class or superclass or the object to be deserialized, or Any or Object if unknown.

context

A context that configures various parameters to deserialization.