Class KotlinSerializationCborDecoder

java.lang.Object
org.springframework.http.codec.KotlinSerializationSupport<kotlinx.serialization.cbor.Cbor>
org.springframework.http.codec.KotlinSerializationBinaryDecoder<kotlinx.serialization.cbor.Cbor>
org.springframework.http.codec.cbor.KotlinSerializationCborDecoder
All Implemented Interfaces:
Decoder<Object>

public class KotlinSerializationCborDecoder extends KotlinSerializationBinaryDecoder<kotlinx.serialization.cbor.Cbor>
Decode a byte stream into CBOR and convert to Objects with kotlinx.serialization. It supports application/cbor.

As of Spring Framework 7.0, open polymorphism is supported.

Decoding streams is not supported yet, see kotlinx.serialization/issues/1073 related issue.

Since:
6.0
Author:
Iain Henderson
  • Constructor Details

    • KotlinSerializationCborDecoder

      public KotlinSerializationCborDecoder()
    • KotlinSerializationCborDecoder

      public KotlinSerializationCborDecoder(kotlinx.serialization.cbor.Cbor cbor)