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