T - type of messages which should not be serialized or deserializedpublic class NoOpSerde<T> extends java.lang.Object implements Serde<T>
| Constructor and Description |
|---|
NoOpSerde() |
| Modifier and Type | Method and Description |
|---|---|
T |
fromBytes(byte[] bytes)
Deserializes given serialized object from an array of bytes to its original form.
|
byte[] |
toBytes(T obj)
Serializes given object to an array of bytes.
|
public T fromBytes(byte[] bytes)
DeserializerfromBytes in interface Deserializer<T>bytes - Array of bytes representing serialized object.public byte[] toBytes(T obj)
SerializertoBytes in interface Serializer<T>obj - Object of specific type to serialize.