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