public class ByteArraySerializer extends Object implements Serializer<byte[]>
Constructor and Description |
---|
ByteArraySerializer() |
public void configure(Map<String,?> configs, boolean isKey)
Serializer
configure
in interface Serializer<byte[]>
configs
- configs in key/value pairsisKey
- whether is for key or valuepublic byte[] serialize(String topic, byte[] data)
serialize
in interface Serializer<byte[]>
topic
- topic associated with datadata
- typed datapublic void close()
Serializer
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Serializer<byte[]>