Class ByteArrayJsonMessageConverter

All Implemented Interfaces:
MessageConverter, RecordMessageConverter

public class ByteArrayJsonMessageConverter extends JsonMessageConverter
JSON Message converter - byte[] on output, String, Bytes, or byte[] on input. Used in conjunction with Kafka ByteArraySerializer/(ByteArrayDeserializer, BytesDeserializer, or StringDeserializer). More efficient than StringJsonMessageConverter because the String<->byte[] conversion is avoided.
Since:
2.3
Author:
Gary Russell
  • Constructor Details

    • ByteArrayJsonMessageConverter

      public ByteArrayJsonMessageConverter()
    • ByteArrayJsonMessageConverter

      public ByteArrayJsonMessageConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details