I - the input value type to convert fromO - the output value type to convert to.public interface PayloadConverter<I,O>
 For full details about payload converters see the Package Guide.
| Modifier and Type | Field and Description | 
|---|---|
static String | 
AVRO_BYTES_TO_JSON
The name of payload converter that converts an Avro byte array to the
 Diffusion JSON topic format. 
 | 
static String | 
AVRO_TO_AVRO_BYTES
The name of payload converter that converts an Avro value to an Avro byte
 array. 
 | 
static String | 
AVRO_TO_JSON
The name of payload converter that converts an Avro value to the
 Diffusion  
TopicType.JSON topic format. | 
static String | 
AVRO_TO_JSON_STRING
The name of payload converter that converts an Avro value to a JSON
 String. 
 | 
static String | 
BINARY_TOPIC_TO_BYTE_ARRAY
The name of payload converter that converts the Diffusion  
TopicType.BINARY topic type to a byte array. | 
static String | 
CSV_TO_JSON
The name of payload converter that converts CSV data to the Diffusion
  
TopicType.JSON topic format. | 
static com.pushtechnology.diffusion.datatype.DataTypes | 
DATA_TYPES
Diffusion datatype implementation that can be used to create Diffusion
 topic types. 
 | 
static com.pushtechnology.diffusion.datatype.json.JSONDataType | 
JSON_DATA_TYPE
JSON datatype implementation. 
 | 
static String | 
JSON_TO_AVRO
The name of payload converter that converts the Diffusion  
TopicType.JSON topic format to an Avro format. | 
static String | 
JSON_TO_CSV
The name of this payload converter that converts the Diffusion  
TopicType.JSON topic format to CSV string. | 
static String | 
JSON_TO_STRING
The name of payload converter that converts the Diffusion  
TopicType.JSON topic format to a String. | 
static String | 
OBJECT_TO_BINARY_TOPIC
The name of payload converter that converts an Object to the Diffusion
  
TopicType.BINARY topic type. | 
static String | 
OBJECT_TO_DOUBLE
The name of payload converter that converts an Object to a Double. 
 | 
static String | 
OBJECT_TO_JSON
The name of payload converter that converts an Object to the Diffusion
  
TopicType.JSON topic format. | 
static String | 
OBJECT_TO_LONG
The name of payload converter that converts an Object to a Long. 
 | 
static String | 
OBJECT_TO_STRING
The name of payload converter that converts an Object to a String. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
O | 
convert(I input)
Converts an input value of type 'I' to an output value of type 'O'. 
 | 
static final com.pushtechnology.diffusion.datatype.DataTypes DATA_TYPES
static final com.pushtechnology.diffusion.datatype.json.JSONDataType JSON_DATA_TYPE
static final String OBJECT_TO_JSON
TopicType.JSON topic format.
 Supported input values include basic POJOs, primitives, and collections such as Map and List.
static final String JSON_TO_STRING
TopicType.JSON topic format to a String.
 
 see the Package
 Guide for full details of the conversions this converter performs.
static final String OBJECT_TO_STRING
 This can be used to publish to the Diffusion TopicType.STRING
 topic type.
 
 see the Package
 Guide for full details of the conversions this converter performs.
static final String OBJECT_TO_LONG
 This can be used to publish to the Diffusion TopicType.INT64
 topic type.
 
 see the Package
 Guide for full details of the conversions this converter performs.
static final String OBJECT_TO_DOUBLE
 This can be used to publish to the Diffusion TopicType.DOUBLE
 topic type.
 
 see the Package
 Guide for full details of the conversions this converter performs.
static final String OBJECT_TO_BINARY_TOPIC
TopicType.BINARY topic type.
 
 see the Package
 Guide for full details of the conversions this converter performs.
static final String BINARY_TOPIC_TO_BYTE_ARRAY
TopicType.BINARY topic type to a byte array.
 
 see the Package
 Guide for full details of the conversions this converter performs.
static final String AVRO_TO_JSON
TopicType.JSON topic format.static final String AVRO_TO_JSON_STRING
static final String AVRO_TO_AVRO_BYTES
static final String AVRO_BYTES_TO_JSON
static final String JSON_TO_AVRO
TopicType.JSON topic format to an Avro format.static final String CSV_TO_JSON
TopicType.JSON topic format.static final String JSON_TO_CSV
TopicType.JSON topic format to CSV string.O convert(I input) throws PayloadConversionException
input - the unconverted input valuePayloadConversionException - if the converter fails to convert the
                                    valueCopyright © 2025 DiffusionData Limited. All rights reserved.