DigitalTwinStringSerializer Class

  • java.lang.Object
    • com.fasterxml.jackson.databind.ser.std.StdSerializer<String>
      • com.microsoft.azure.sdk.iot.service.digitaltwin.serialization.DigitalTwinStringSerializer

public class DigitalTwinStringSerializer

Configures the StdSerializer with custom behavior needed to work with Digital Twins REST API.

Constructor Summary

Constructor Description
DigitalTwinStringSerializer(Class<String> t, ObjectMapper mapper)

Method Summary

Modifier and Type Method and Description
void serialize(String s, JsonGenerator jsonGenerator, SerializerProvider serializerProvider)

Constructor Details

DigitalTwinStringSerializer

public DigitalTwinStringSerializer(Class t, ObjectMapper mapper)

Parameters:

t
mapper

Method Details

serialize

public void serialize(String s, JsonGenerator jsonGenerator, SerializerProvider serializerProvider)

Parameters:

s
jsonGenerator
serializerProvider

Applies to