Skip to main content

Module serialization

Module serialization 

Source
Expand description

Serialization interfaces and implementations (org.apache.kafka.common.serialization).

Provides the Serializer and Deserializer traits and common implementations for strings and byte arrays.

Structs§

ByteArrayDeserializer
Deserializes byte arrays by returning the bytes unchanged.
ByteArraySerializer
Serializes byte arrays by passing them through unchanged.
BytesDeserializer
Deserializes byte arrays into refcounted [bytes::Bytes].
StringDeserializer
Deserializes UTF-8 encoded bytes to strings.
StringSerializer
Serializes strings to UTF-8 encoded bytes.

Traits§

Deserializer
An interface for converting bytes to objects.
Serializer
An interface for converting objects to bytes.