public class ByteArraySerializer extends java.lang.Object implements Serializer<byte[]>
Constructor and Description |
---|
ByteArraySerializer() |
Modifier and Type | Method and Description |
---|---|
byte[] |
serialize(java.lang.String topic,
byte[] data)
Convert
data into a byte array. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, configure, serialize
public byte[] serialize(java.lang.String topic, byte[] data)
Serializer
data
into a byte array.serialize
in interface Serializer<byte[]>
topic
- topic associated with datadata
- typed data