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