Class ByteArraySerializer
java.lang.Object
org.apache.kafka.common.serialization.ByteArraySerializer
- All Implemented Interfaces:
Closeable,AutoCloseable,Serializer<byte[]>
-
Constructor Details
-
ByteArraySerializer
public ByteArraySerializer()
-
-
Method Details
-
serialize
Description copied from interface:SerializerConvertdatainto a byte array.- Specified by:
serializein interfaceSerializer<byte[]>- Parameters:
topic- topic associated with datadata- typed data- Returns:
- serialized bytes
-